日期:2014-05-17 浏览次数:20459 次
Set @CreateSQL='Create Table '+ @TableName +
'( [OpeningDirection] NCHAR (1) NOT NULL,
CONSTRAINT [CK_'+@TableName+'_OpeningDirection] CHECK ([OpeningDirection]='+'多'+' OR OpeningDirection='+'空'+'))'
Exec(@CreateSQL)
Set @CreateSQL='Create Table '+ @TableName +
'( [OpeningDirection] NCHAR (1) NOT NULL,
CONSTRAINT [CK_'+@TableName+'_OpeningDirection] CHECK ([OpeningDirection]='+'''多'''+' OR OpeningDirection='+'''空'''+'))'
Exec(@CreateSQL)