MySQL binary type

Source: Internet
Author: User
Binary types include binary, VARBINARY, BIT, Tinyblob, BLOB, Mediumblob, Longblob  binary (M) types, save bytes instead of characters, no character set limit, byte number is M, allow length of 0 ~m a fixed-length binary string. Less than the maximum specified length of space by the "\" complement, the query should also include "\", otherwise not found. Comparisons are made by byte rather than by character (char), which is simple and fast compared to characters, by character (char), and binary is case-sensitive. The  VARBINARY (M) type, which allows a variable-length binary string of lengths of 0~m, actually occupies the actual length plus 1. Comparisons are made by byte rather than by character (char). "\" is not included in this type. Problem: Binary type is not sufficient to replace, char type of less than the number of bytes with what instead?

MySQL binary 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.