What is the maximum number of characters that nvarchar(MAX) will hold?

前端 未结 3 1978
野性不改
野性不改 2020-11-28 08:43

I\'m new to the concept nvarchar(MAX). How many characters will it hold?

3条回答
  •  臣服心动
    2020-11-28 09:07

    From char and varchar (Transact-SQL)

    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.

提交回复
热议问题