Use the IS NULL and IS NOT NULL operators : Null : Data Type SQL / MySQL


SQL / MySQL » Data Type » Null »

 

Use the IS NULL and IS NOT NULL operators



/*
mysql> SELECT 1 IS NULL, 1 IS NOT NULL;
+-----------+---------------+
| 1 IS NULL | 1 IS NOT NULL |
+-----------+---------------+
|         0 |             1 |
+-----------+---------------+
1 row in set (0.00 sec)


*/  
SELECT IS NULL, IS NOT NULL;
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo Data Type
» Null