Syntax
LENGTH(str)
Purpose
LENGTH() returns the length of str in bytes.
A multi-byte character is counted as multiple characters. For example, if you enter five two-byte characters, CHAR_LENGTH() returns 5, while LENGTH() returns 10.
OceanBase Database
Download PDF
LENGTH(str)
LENGTH() returns the length of str in bytes.
A multi-byte character is counted as multiple characters. For example, if you enter five two-byte characters, CHAR_LENGTH() returns 5, while LENGTH() returns 10.