Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 572 Bytes

File metadata and controls

27 lines (20 loc) · 572 Bytes
description
Converts the input expression to a binary value.

BINARY_STRING

Syntax

BINARY_STRING(expression VARCHAR) → BINARY

  • expression: Varchar expression to convert to binary.

Examples

{% code title="BINARY_STRING example" %}

SELECT BINARY_STRING('SPICE')
-- RFJFTUlP

{% endcode %}

{% code title="BINARY_STRING example" %}

SELECT BINARY_STRING('000')
-- MDAw

{% endcode %}