摘要: nchar:Unicode定长字符型,一般用在长度变化不大的列。如姓名(2到4个汉字),电话(11位),身份证号(19位)。nvarchar:Unicode变长字符型,一般用在长度变化大的列。如家庭地址等。ntext:Unicode文本型,用在需要输入大段文字的字段,如简历,内容摘要等。 阅读全文
posted @ 2012-02-24 10:22 瓦里奥 阅读(353) 评论(0) 推荐(0) 编辑
摘要: declare @sql nvarchar(4000) set @sql= N'select @TotalRecords=count(*) from ' + N'(' + @sqlFullPopulate + N') a ' EXEC sp_executesql @sql,N'@TotalRecords int output', @TotalRecords output 问题:@sql... 阅读全文
posted @ 2012-02-24 10:20 瓦里奥 阅读(25358) 评论(2) 推荐(1) 编辑