Skip to main content Skip to complementary content

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!