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

TYPEOF



TYPEOF function is used to return the name of a data type.

Syntax

TYPEOF( <expr> )

Arguments

ArgumentsDescription
<expr>Any expression.
This may be a column name, the result of another function, or a math operation.

Return Type

String

Examples

SELECT typeof(1::INT); +------------------+ | typeof(1::Int32) | +------------------+ | INT | +------------------+

Was this page helpful?