This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ##oracle | |
create TABLE TEST_SEB ( | |
COL_1 varchar(10), | |
COL_2 varchar(10) NOT NULL | |
) | |
-- do not change nullity nor type | |
ALTER TABLE TEST_SEB MODIFY ( | |
COL_1 varchar(10) NULL, | |
COL_2 varchar(10) NOT NULL | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ##postgre | |
create TABLE TEST_SEB ( | |
COL_1 varchar(10), | |
COL_2 varchar(10) NOT NULL | |
) | |
-- do not change nullity nor type | |
alter table TEST_SEB | |
ALTER COLUMN COL_1 TYPE varchar(10), | |
ALTER COLUMN COL_1 DROP NOT NULL, |
NewerOlder