Returns the length in bytes of the string
str
. Note that multibyte characters count
as multiple bytes. If you need to know the actual number of characters
in a string, use the CHAR_LENGTH
function. This code returns the value 15
:
SELECT LENGTH('Mark Zuckerberg');