What is the difference between CHAR_LENGTH and LENGTH in MySQL?

by Geethalakshmi 2010-09-29 15:17:12

What is the difference between CHAR_LENGTH and LENGTH in MySQL?


CHAR_LENGTH, as the name suggests, returns the number of characters / character count. The LENGTH returns the number of bytes / bytes count. To count the Latin characters, both lengths are the same. To count Unicode and other encodings, the lengths are different.

Tagged in:

897
like
0
dislike
0
mail
flag

You must LOGIN to add comments