Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 482 Bytes

File metadata and controls

22 lines (16 loc) · 482 Bytes
description
Returns the length of an input string. If the character encoding isn’t specified, it assumes to UTF8.

LENGTH

Syntax

LENGTH(expression varchar) → int32

  • expression: String expression to determine the length of.

Examples

{% code title="LENGTH example" %}

SELECT LENGTH('SPICE')
-- 5

{% endcode %}