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, 294🔥, 0💬
Popular Posts:
How To Convert Numeric Expression Data Types using the CAST() Function in SQL Server Transact-SQL? I...
What is sqlservr.exe - Process - SQL Server (SQLEX?PRESS) in SQL Server? Process sqlservr.exe is the...
How To Provide Default Values to Function Parameters in SQL Server Transact-SQL? If you add a parame...
What Is an Oracle Tablespace in Oracle? An Oracle tablespace is a big unit of logical storage in an ...
How to download Microsoft SQL Server 2005 Express Edition in SQL Server? Microsoft SQL Server 2005 E...