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

Other Functions



This section collects assorted utilities that do not fit into the major functional groups.

FunctionDescription
ASSUME_NOT_NULLHint that values in a nullable column are never NULL
EXISTSReturn TRUE if a subquery produces any rows
GROUPINGReveal whether an output column was aggregated in GROUPING SETS
HUMANIZE_NUMBERFormat large numbers with unit suffixes
HUMANIZE_SIZEFormat byte counts into readable units
READ_FILERead a file from a stage and return its raw bytes
REMOVE_NULLABLEStrip NULLability from a column value
TO_NULLABLEConvert a value to a nullable type
TYPEOFReturn the name of a value’s data type

Was this page helpful?