Skip to main content
Scalar function
Returns NULL for NULL input.

Syntax

Scalar

Arguments

Returns

  • Type: INT
  • Possible values: A nonnegative byte count; zero for an empty value.
  • NULL behavior: Returns NULL for NULL input.

Properties

Units

  • Input unit: UTF-8 string or bytes
  • Output unit: Bytes
  • character_length counts Unicode code points.

Examples

Typical behavior

Text bytes versus binary bytes

Last modified on October 15, 2026