TRY_TO_BOOLEAN¶
TRY_TO_BOOLEAN(COLUMN_EXPRESSION)
This is similar to TO_BOOLEAN
except that it will return NULL
instead of throwing an error invalid inputs.
Example:
We are given table1
with columns a
and b
and c
TRY_TO_BOOLEAN(COLUMN_EXPRESSION)
This is similar to TO_BOOLEAN
except that it will return NULL
instead of throwing an error invalid inputs.
Example:
We are given table1
with columns a
and b
and c