Ms SQL parser data type varchar (max), nvarchar (max), varbinary (max)

Source: Internet
Author: User

In Ms sql2005 and later versions, the sequence data types (varchar (max), nvarchar (max), and varbinary (max) are added )). The Bytes data type can store up to 2 ^ 30-1 bytes of data.

These data types are behavior and small data types.Varchar,NvarcharAndVarbinarySame.

Microsoft uses this data type to replace the previous one.Text,NtextAndImageData type. The relationship between them is:

Varchar (max) ------- text;

Nvarchar (max) ----- ntext;

Varbinary (max) ---- image.

 

With the volume data type, it is more flexible to operate the volume data than before. For example, 'like' cannot be used in text before, and there is no such problem after varchar (max), because varchar (max) is in the same behavior as varchar (n, therefore, varcahr can be used on varchar (max.

In addition, this also supportsInsertedAndDeletedThe After trigger is used for reference of the values data type column in the table. Text won't work. In short, after using the timeline data type, I am "waist is not hurt, legs are not sour, and I can go to the sixth floor in one breath ". What are you waiting for? Use the volume type.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.