sql server 2008 R2 存储过程变量赋值问题 20
sqlserver2008R2存储过程变量varchar(max)赋值也最多只有8000字符,这是什么原因导致?...
sql server 2008 R2 存储过程变量varchar(max)赋值也最多只有8000字符,这是什么原因导致?
展开
1个回答
展开全部
官方文档这样写的:
varchar [ ( n | max ) ] Variable-length, non-Unicode character data. n can be a value from 1 through 8,000. max indicates that the maximum storage size is 2^31-1 bytes. The storage size is the actual length of data entered + 2 bytes. The data entered can be 0 characters in length. The ISO synonyms for varchar are char varying or character varying.
字段如果存储字符串的话,最多就8000个,max可以存储clob类型的大字段。
varchar [ ( n | max ) ] Variable-length, non-Unicode character data. n can be a value from 1 through 8,000. max indicates that the maximum storage size is 2^31-1 bytes. The storage size is the actual length of data entered + 2 bytes. The data entered can be 0 characters in length. The ISO synonyms for varchar are char varying or character varying.
字段如果存储字符串的话,最多就8000个,max可以存储clob类型的大字段。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询