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

Syntax

Scalar

Arguments

Returns

  • Type: INT
  • Possible values: The first Unicode scalar value as an integer; zero for an empty string.
  • NULL behavior: Returns NULL for NULL input.

Properties

Usage notes

  • Non-ASCII Unicode characters are supported despite the function’s name.

Examples

Typical behavior

Leading character only

Last modified on October 15, 2026