DB2
Versions
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
DB2 z/OS