Documentation

    typeof

    Return the name of an expression's data type.

    Try an expression

    In Formula, enter the expression and set Output type to VARCHAR.

    Expression

    typeof('abc')

    Result

    'VARCHAR'

    To use your own data, replace the example values with column names. Keep format strings and other options as written.

    Arguments and types

    typeof(expression)
    expression
    Any value
    Supported signatures (1)
    typeof(expression: ANY) → VARCHAR

    The result type can depend on the input types. See DuckDB for the full argument rules.

    Things to know

    With a missing first argument

    typeof(NULL::VARCHAR)

    'VARCHAR'

    Browse conversion & identifiersDuckDB documentation

    Function metadata from DuckDB, used under the MIT license.