What is the difference between CHAR_LENGTH and LENGTH in MySQL?
by Geethalakshmi[ Edit ] 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.