In MariaDB, OCTET_LENGTH()
is a built-in string function that returns the length of the given string argument, measured in octets (bytes).
OCTET_LENGTH()
is a synonym for LENGTHB()
.
It’s also a synonym for LENGTH()
when not in Oracle mode (LENGTH()
behaves differently in Oracle mode).