Comments - VARCHAR

6 years, 8 months ago Chris Hennick

Is there any way to set the length limit of a VARCHAR in bytes rather than characters, for strings that may use more characters in English (where the characters are almost exclusively 1-byte) than in Japanese or Chinese (where the characters will be 2 bytes or more)?

 
6 years, 8 months ago Ian Gilfillan

VARCHAR limits are specified in characters, but if you know the character set, you know the limit in bytes. See the list of supported character sets which indicate the maximum lengths.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.