Return the specified value IF the expression is NULL, otherwise return the expression:
SELECT ISNULL(NULL, '91xjr.com');
Try it Yourself »
The ISNULL() function returns a specified value if the expression is NULL.
If the expression is NOT NULL, this function returns the expression.
ISNULL(
expression,
value)
Parameter | Description |
---|---|
expression | Required. The expression to test whether is NULL |
value | Required. The value to return if expression is NULL |
Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|
Return the specified value IF the expression is NULL, otherwise return the expression:
SELECT ISNULL('Hello', '91xjr.com');
Try it Yourself »
Return the specified value IF the expression is NULL, otherwise return the expression:
SELECT ISNULL(NULL, 500);
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!