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