yog*_*gee 56 sql-server
如何在SQL Server 2005中的现有表中添加非空列?
Adr*_*der 90
您将要么必须指定DEFAULT,要么添加允许NULL的列,更新所有值,然后将列更改为NOT NULL.
ALTER TABLE <YourTable> ADD <NewColumn> <NewColumnType> NOT NULL DEFAULT <DefaultValue>
zer*_*kms 16
选择:
a)使用一些有效的默认值创建非null b)创建null,填充它,alter to not null
归档时间:
14 年,8 月 前
查看次数:
107816 次
最近记录:
7 年,4 月 前