Inserts data into an existing table.

Available attributes

Name Description Required for Supports Since
catalogName Name of the catalog all 3.0
dbms Logical expression of database type(s) on which the change must be applied. Valid database type names are listed on the supported databases page.It can be a comma separated list of multiple databases. Or You can also specify that a change is NOT applicable to a particular database type by prefixing with !. The keywords all and none are also available. all 3.0
schemaName Name of the schema all
tableName Name of the table to insert data into all all

Nested properties

Name Description Required for Supports Multiple allowed
columns Data to insert into columns

See the documentation for more information
all all yes

XML example

<changeSet  author="liquibase-docs"  id="insert-example">  
    <insert  catalogName="cat"  
            dbms="!h2, mysql"  
        <column  name="address"  value="address value"/>  

YAML example

  id:  insert-example  
  author:  liquibase-docs  
  -  insert:  
      catalogName:  cat  
      -  column:  
          name:  address  
          value:  address value  
      dbms:  '!h2,  mysql'  
      schemaName:  public  
      tableName:  person

JSON example

{  "changeSet":  {  "id":  "insert-example",  "author":  "liquibase-docs",  "changes":  [  {  "insert":  {  "catalogName":  "cat",  "columns":  [  {  "column":  {  "name":  "address",  "value":  "address value"  }  }]  ,  "dbms":  "!h2, mysql",  "schemaName":  "public",  "tableName":  "person"  }  }]  }  }

SQL example

INSERT  INTO  cat.person  (address)  VALUES  ('address value');

Database support

Database Note 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