The LENGTHB function returns the length of a supplied string in bytes. Also see the OCTET_LENGTH function.