Skip to main content
Skip table of contents

T-SQL and NULLs

T-SQL and NULL values.

IS [NOT] NULL (T-SQL)

Determines whether a specified expression is NULL.

CODE
expression IS [ NOT ] NULL  

https://learn.microsoft.com/en-us/sql/t-sql/queries/is-null-transact-sql?view=sql-server-ver16

ISNULL (T-SQL)

Replaces NULL with the specified replacement value.

CODE
ISNULL ( check_expression , replacement_value )

https://learn.microsoft.com/en-us/sql/t-sql/functions/isnull-transact-sql?view=sql-server-ver16

Related Pages

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.