Interview Questions

What’s the difference between CHAR_LENGTH and LENGTH?

MySQL and SQL


(Continued from previous question...)

What’s the difference between CHAR_LENGTH and LENGTH?

The first is, naturally, the character count. The second is byte count. For the Latin characters the numbers are the same, but they’re not the same for Unicode and other encodings.

(Continued on next question...)

Other Interview Questions