TO_CHAR¶
TO_CHAR(COLUMN_EXPRESSION)
Casts the input to a string value. If the input is a boolean, it will be cast to 'true'
if it is true
and 'false'
if it is false
. If the input is NULL
, the output will be NULL
.
Example:
We are given table1
with columns a
and b
and c
Note that if the input is a TIMESTAMP_TZ
the only currently supported output
format that includes TZH
or TZM
is YYYY-MM-DD HH:MM:SS.SSSSSSSSS +TZH:TZM
(where +
represents +
or -
). Formats that do not include those
identifiers are supported.