Reports the type (in string format) of the input expression.
input: An expression for which the type is returned.
Examples
SELECT TYPEOF(TRUE) -- BIT
SELECT TYPEOF(100) -- INT
SELECT TYPEOF(98.76) -- DECIMAL
SELECT TYPEOF('2021-09-14') -- VARCHAR
Last updated 2 years ago
Was this helpful?