sql语句修改表字段类型及长度,sql给表增加字段

1  --修改表的字段类型及长度
2  alter table 表名 alter column 字段名 nvarchar(200)
3  
4  --增加字段
5  alter table 表名  add  字段名 int  not null default(10)
6 
7 --删除字段
8  alter table 表名 drop column 字段名

 

posted @ 2015-03-06 15:10  清幽紫竹  Views(1298)  Comments(0)    收藏  举报