LENGTH
Returns the length of a given string.
Syntax
LENGTH(STRING)
Arguments
STRING
Type: string
A sequence of characters.
Returns
Type: bigint
The length of STRING in characters.
Examples
| STRING | Output |
|---|---|
| 1 | 1 |
| abcdefg | 7 |
| 12345 | 5 |
null
|
null
|
''
|
0 |
| -=^%$ | 5 |