博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年7月7日

摘要: 添加列alter table 表名称 add 列名称 类型 是否为空alter table table1 add column1 nvarchar(10) null修改列alter table 表名称 alter column 类型 是否为空alter table table1 alter column nvarchar(20) not null删除列alter table 表名称 drop column 列名称alter table table1 drop column column1增加默认值alter table 表名 add constraint 约束名 default(默认值) fo 阅读全文

posted @ 2011-07-07 17:09 枫之一刀 阅读(310) 评论(0) 推荐(0) 编辑