CodePudding user response:
MySql version 5.0 + :1, how much a Chinese characters of length coding related:
Utf-8: a=3 bytes of Chinese characters, English is a byte
GBK: a=2 bytes of Chinese characters, English is a byte
2, a varchar (n) n characters, regardless of the Chinese and English, MySql can be deposited in the n characters, only the actual bytes,
CodePudding user response:
Varchar N represents the number of characters is not the number of bytesCodePudding user response:
So varchar N represents the number of characters is not the number of bytes, so I need not consider bytes of concept?CodePudding user response:
Varchar 3 represents the number of characters, not bytesCodePudding user response:
SQL server varchar (n) is the representative of bytes