Documentation

    ifnull

    Use a fallback when a value is missing.

    Try an expression

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

    Expression

    ifnull(NULL, 'Unknown')

    Result

    'Unknown'

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

    Arguments and types

    ifnull(expr, other)

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

    Things to know

    An empty string is a value

    ifnull('', 'Unknown')

    ''

    Browse conditions & missing valuesDuckDB documentation

    Function metadata from DuckDB, used under the MIT license.