length of char 炭化长度
CHAR Stores single-byte or multibyte text strings of fixed length (up to 32,767 bytes); supports code-set order in collation of text data.
CHAR存储固定长度的单字节或多字节的文本字符串(最高可达32,767个字节);在整理文本数据时支持使用代码集顺序。
The second difference is more subtle: The CHAR type is always the length you specify.
第二个区别比较微妙:CHAR 类型的长度总是指定的长度。
First, the char type has a maximum length of 254 characters, whereas the VARCHAR type can hold up to 32,672 characters.
首先,char类型的最大长度是254个字符,而varchar类型最多可以容纳32,672个字符。
应用推荐