引用:http://penghuaiyi.iteye.com/blog/661328
1.增加列:
- alter table tableName add columnName varchar(30)
2.修改列类型:
- alter table tableName alter column columnName varchar(4000)
3.修改列的名称:
- EXEC sp_rename 'tableName.column1' , 'column2' (把表名为tableName的column1列名修改为column2)
3.删除列:
- alter table tableName drop column columnName