Database - Is there a function in mysql to check the data size??
怪我咯
怪我咯 2017-06-06 09:51:55
0
1
709

What is the length() function in mysql? Isn’t it checking the number of characters:
length('Hello') //Return 7

Is there any other function that returns the number of bytes? Please help!

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
为情所困

length() returns the number of bytes occupied by storage, char_length() returns the number of characters.
For example, length('Hello') should return 6 under the utf8 character set, char_length('Hello') should return 2.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template