您的位置:首页 > 博客中心 > 数据库 >

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

热门排行

今日推荐

热门手游