sql alter表字段处理

时间:2014-08-11 17:16:52   收藏:0   阅读:230

--添加字段

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!