alter table db_compensation add ( AUDIT_FLAG VARCHAR2(6), AUDIT_USER VARCHAR2(30), AUDIT_TIME DATE ); 添加備注: comment on column db_compensation.AUDIT_FLAG is '月結審核標識: 1:審核, 0:未審核'; comment on column db_compensation.AUDIT_USER is '審核賬號'; comment on column db_compensation.AUDIT_TIME is '審核時間'; 添加默認值: alter table db_compensation modify AUDIT_FLAG default '0';
添加表字段長度
alter table 表名 modify 字段名 varchar2(4000);