Skip to main content
Scalar function
NULL input returns NULL.

Syntax

Scalar

Arguments

Returns

  • Type: STRING
  • Possible values: Uppercase hex digits.
  • NULL behavior: NULL input returns NULL.

Properties

Examples

Typical behavior

Encode multibyte text

Limitations

  • TO_HEX takes one STRING argument. Use HEX for integer or BINARY values. A second TO_HEX argument is not supported.
Last modified on October 15, 2026