Skip to main content
Version: 0.0.1

OCTET_LENGTH

Categories: String

OCTET_LENGTH

Returns the length of the string in bytes.

Syntax

OCTET_LENGTH(input varchar) → int32

  • input: The string for which the length is returned.

Examples

{{< codeheader "OCTET_LENGTH example" >}}

SELECT OCTET_LENGTH('abc')
-- 3