Collections:
ISNULL() - Detecting NULL Value
How to detect a NULL value using the ISNULL() function?
✍: FYIcenter.com
ISNULL(val) is a MySQL built-in function that
returns 1 if the given value is NULL, 0 otherwise.
For example:
SELECT ISNULL(1+1); -- +-------------+ -- | ISNULL(1+1) | -- +-------------+ -- | 0 | -- +-------------+ SELECT ISNULL(1/0); -- +-------------+ -- | ISNULL(1/0) | -- +-------------+ -- | 1 | -- +-------------+
Reference information of the ISNULL() function:
ISNULL(val): boolean Returns TRUE, if and only if the argument is NULL. Arguments, return value and availability: val: Required. The value to be examined. boolean: Return value. TRUE, if and only if the argument is NULL. Available since MySQL 4.0.
⇒ LEAST() - Finding the Least/Minimum Value
⇐ IS_USED_LOCK() - Checking Lock Owner
2023-12-17, 1148🔥, 0💬
Popular Posts:
What To Do If the StartDB.bat Failed to Start the XE Instance in Oracle? If StartDB.bat failed to st...
How To List All Login Names on the Server in SQL Server? If you want to see a list of all login name...
Is SQL Server Transact-SQL case sensitive? No. Transact-SQL is not case sensitive. Like the standard...
How To Get a List of All Tables with "sys.tables" View in SQL Server? If you want to see the table y...
How To Convert Numeric Values to Integers in SQL Server Transact-SQL? Sometimes you need to round a ...