Deletes data from an existing table
Name | Description |
---|---|
catalogName | Name of the catalogE.g. 'cat' |
schemaName | Name of the schemaE.g. 'public' |
tableName | Name of the tableE.g. 'person' |
Name | Description |
---|---|
where | Allows to define the 'where' condition(s) stringE.g. 'name='Bob'' |
<changeSet author="liquibase-docs" id="delete-example">
<delete catalogName="cat"
schemaName="public"
tableName="person">
<where>name='Bob'</where>
</delete>
</changeSet>
changeSet:
id: delete-example
author: liquibase-docs
changes:
- delete:
catalogName: cat
schemaName: public
tableName: person
where: name='Bob'
{
"changeSet": {
"id": "delete-example",
"author": "liquibase-docs",
"changes": [
{
"delete": {
"catalogName": "cat",
"schemaName": "public",
"tableName": "person",
"where": "name='Bob'"
}
}]
}
}
DELETE FROM cat.person WHERE name='Bob';
Database | Notes | Auto Rollback |
---|---|---|
DB2/LUW | Supported | No |
DB2/z | Supported | No |
Derby | Supported | No |
Firebird | Supported | No |
H2 | Supported | No |
HyperSQL | Supported | No |
INGRES | Supported | No |
Informix | Supported | No |
MariaDB | Supported | No |
MySQL | Supported | No |
Oracle | Supported | No |
PostgreSQL | Supported | No |
SQL Server | Supported | No |
SQLite | Supported | No |
Sybase | Supported | No |
Sybase Anywhere | Supported | No |