What is the difference between MySQL LENGTH() and CHAR_LENGTH() function?
Answers
Answered by
0
Answers. LENGTH() returns the length of the string measured in bytes. CHAR_LENGTH() returns the length of the string measured in characters. As you can see the Euro sign occupies 3 bytes (it's encoded as 0xE282AC in UTF-8) even though it's only one cha
Similar questions
English,
7 months ago
Computer Science,
7 months ago
Geography,
7 months ago
Psychology,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago
Physics,
1 year ago
English,
1 year ago