Want to deploy your JVM, Node.js and Go apps effortlessly to AWS? Try our service Boxfuse

DB2

Versions

  • 9.7.0.7 and later

Default Driver

  • com.ibm.db2.jcc.DB2Driver

Sql Script Syntax

Compatibility

  • DDL exported by DB2 can be used unchanged in a Flyway migration.
  • Any DB2 sql script executed by Flyway, can be executed by db2 (after the placeholders have been replaced).

Example

/* Single line comment */
CREATE TABLE test_user (
 name VARCHAR(25) NOT NULL,
 PRIMARY KEY(name)
);

/*
Multi-line
comment
*/

-- Placeholder
INSERT INTO ${tableName} (name) VALUES ('Mr. T');

Limitations

  • None

DB2 z/OS