LENGTH
Return the length of a string in bytes.
Syntax
LENGTH(str)
Arguments
| Arguments | Description |
|---|---|
| str | The string. |
Return Type
A number data type value.
Examples
SELECT LENGTH('Word');
+----------------+
| LENGTH('Word') |
+----------------+
| 4 |
+----------------+