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, 266🔥, 0💬
Popular Posts:
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
Why I Can Not Enter 0.001 Second in DATETIME values in SQL Server Transact-SQL? If you enter millise...
How To Use SQL*Plus Built-in Timers in Oracle? If you don't have a stopwatch/timer and want to measu...
What Is ISAM in MySQL? ISAM (Indexed Sequential Access Method) was developed by IBM to store and ret...
How To Create a Stored Program Unit in Oracle? If you want to create a stored program unit, you can ...