Scalar. Returns the number of bytes of a given binary value, string, or multibyte string.
length ( expression )
expression |
A binary value, string, or multibyte string. |
length (hex_binary ('0xaa1234')) returns 3.
length (hex_binary ('aa')) returns 1.
length ('ABCDE') returns 5.
length ('')
returns 6 (with utf8 disabled) or 2 (with utf8 enabled).