Categories: Datatype
TYPEOF
Reports the type (in string format) of the input expression.
Syntax
TYPEOF(input any) → varchar
- input: An expression for which the type is returned.
Examples
TYPEOF exampleSELECT TYPEOF(TRUE)
-- BIT
SELECT TYPEOF(100)
-- INT
SELECT TYPEOF(98.76)
-- DECIMAL
SELECT TYPEOF('2021-09-14')
-- VARCHAR
Was this page helpful?
Glad to hear it! Thank you for your feedback.
Sorry to hear that. Thank you for your feedback.