Skip to main content
Version: current [24.3.x]

BINARY_STRING

Categories: Conversion

BINARY_STRING

Converts the input expression to a binary value.

Syntax

BINARY_STRING(expression VARCHAR) → BINARY

  • expression: Varchar expression to convert to binary

Examples

BINARY_STRING example
SELECT BINARY_STRING('DREMIO')
-- RFJFTUlP
BINARY_STRING example
SELECT BINARY_STRING('000')
-- MDAw