ORCLAE 给已经存在的数据增加默认值;
ALTER TABLE XXX MODIFY XXX DEFAULT XXX;
ALTER TABLE TABLE_NAME DROP COLUMN COLUMN_NAME;
ALTER TABLE TABLE_NAME ADD COLUMN COLUMN_NAME VARCHAR2(10) DEFAULT 'ANDY';
COMMENT ON COLUMN TABLE_NAME.COLUMN_NAME IS 'XXXXXX';
ORCLAE 给已经存在的数据增加默认值;
ALTER TABLE XXX MODIFY XXX DEFAULT XXX;
ALTER TABLE TABLE_NAME DROP COLUMN COLUMN_NAME;
ALTER TABLE TABLE_NAME ADD COLUMN COLUMN_NAME VARCHAR2(10) DEFAULT 'ANDY';
COMMENT ON COLUMN TABLE_NAME.COLUMN_NAME IS 'XXXXXX';