Type Conversion Functions
CAST
CAST(value AS type)Type
Aliases
Description
SELECT CAST(revenue AS DOUBLE) AS revenue_double,
CAST(zipCode AS VARCHAR) AS zip_string,
CAST('12345' AS BIGINT) AS id_long
FROM orders
LIMIT 5bigDecimalToBytes
bytesToBigDecimal
hexToBytes
bytesToHex
base64Encode
base64Decode
hexDecimalToLong
longToHexDecimal
Last updated
Was this helpful?

