Skip to main content

TO_BOOLEAN

Converts a value to BOOLEAN data type.

Syntax

TO_BOOLEAN( <expr> )

Examples

SELECT TO_BOOLEAN('true');

┌────────────────────┐
│ to_boolean('true')
├────────────────────┤
true
└────────────────────┘
Did this page help you?
Yes
No
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today