sql alter表字段处理
时间:2022-03-13 22:42
--添加字段
ALTER table WCOLLECTION add CLT_ID int null default(0)
--将已有字段类型为 NULL 修改为 NOT NULL
alter table table_name
alter column column_name char(20) not null
--添加主键
ALTER table WCOLLECTION add primary key (CLT_ID)
sql alter表字段处理,布布扣,bubuko.com