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