LENGTH

Returns the length of an input string. If the character encoding isn’t specified, it assumes to UTF8.

Syntax

LENGTH(expression varchar) β†’ int32

  • expression: String expression to determine the length of.

Examples

LENGTH example
SELECT LENGTH('SPICE')
-- 5

Last updated