您的位置:首页 > 其它

移动表字段顺序,更改字段的属性

2012-03-12 17:20 190 查看
想要移动已建立的表的字段顺序,

If you want to modify a table property through the UI which requires a table recreation, then you need to change the following options in Management Studio:

Tools ->Options-> Designers -> Table and Database Designers -> uncheck the option "Prevent saving changes that require table re-creation"

想要更改字段的属性,变成int或者其他的,变成空或者非空,限制长度等,

ALTERTABLE mytable ALTER COLUMN name int NOT NULL
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: