LENGTH
suggest changeReturn the length of the string in bytes. Since some characters may be encoded using more than one byte, if you want the length in characters see CHAR_LENGTH()
Syntax: LENGTH(str)
LENGTH('foobar') -- 6
LENGTH('fööbar') -- 8 -- contrast with CHAR_LENGTH(...) = 6
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents