liquibase.harness.change.expectedSql.oracle.mergeColumns.sql Maven / Gradle / Ivy
CREATE TABLE "C##LIQUIBASE".full_name_table (first_name VARCHAR2(50), last_name VARCHAR2(50))
INSERT INTO "C##LIQUIBASE".full_name_table (first_name) VALUES ('John')
UPDATE "C##LIQUIBASE".full_name_table SET last_name = 'Doe' WHERE first_name='John'
INSERT INTO "C##LIQUIBASE".full_name_table (first_name) VALUES ('Jane')
UPDATE "C##LIQUIBASE".full_name_table SET last_name = 'Doe' WHERE first_name='Jane'
ALTER TABLE "C##LIQUIBASE".full_name_table ADD full_name VARCHAR2(255)
UPDATE "C##LIQUIBASE".full_name_table SET full_name = first_name || ' ' || last_name
ALTER TABLE "C##LIQUIBASE".full_name_table DROP COLUMN first_name
ALTER TABLE "C##LIQUIBASE".full_name_table DROP COLUMN last_name
© 2015 - 2024 Weber Informatics LLC | Privacy Policy