日期:2014-05-17 浏览次数:20539 次
alter table aaa add bbb nvarchar(3) not null constraint DF_aaa_bbb default('')
ALTER TABLE [dbo].[aaa] ADD bbb NVARCHAR(3)
GO
UPDATE [aaa] SET bbb=''
GO
ALTER TABLE [dbo].[aaa] alter column bbb NVARCHAR(3) NOT NULL
GO
ALTER TABLE [dbo].[aaa] ADD CONSTRAINT [DF_aaa_bbb] DEFAULT ('') FOR [bbb]
GO