【网摘】sql 语句修改字段名称以及字段类型

网上摘抄,备份使用:
修改字段名:
下例将表 customers 中的列 contact title 重命名为 title。

EXEC sp_rename 'customers.[contact title]', 'title', 'COLUMN'
修改字段属性:
alter table tab_info alter column thisname varchar(200) not null;

修改默认值
alter table tabinfo add constraint df default('嘿嘿') for thisname;
原文出处:http://zhidao.baidu.com/question/183404624.html
希望对你有所帮助!^_^
原文地址:https://www.cnblogs.com/woaic/p/3943690.html