📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

TO_BOOLEAN



Converts a value to BOOLEAN data type.

Syntax

TO_BOOLEAN( <expr> )

Examples

SELECT TO_BOOLEAN('true'); ┌────────────────────┐ │ to_boolean('true') │ ├────────────────────┤ │ true │ └────────────────────┘

Was this page helpful?