Skip to content

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

func.typeof( <expr> )
func.typeof(1)
┌──────────────────┐
│ func.typeof(1) │
├──────────────────┤
INT
└──────────────────┘
TYPEOF( <expr> )
ArgumentsDescription
<expr>Any expression.
This may be a column name, the result of another function, or a math operation.

String

SELECT typeof(1::INT);
┌──────────────────┐
│ typeof(1::Int32) │
├──────────────────┤
INT
└──────────────────┘