Use 0 and '' is not NULL : NULL : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » NULL »

 

Use 0 and '' is not NULL


mysql>
mysql> SELECT IS NULL, IS NOT NULL, '' IS NULL, '' IS NOT NULL;
+-----------+---------------+------------+----------------+
IS NULL | IS NOT NULL | '' IS NULL | '' IS NOT NULL |
+-----------+---------------+------------+----------------+
|         |             |          |              |
+-----------+---------------+------------+----------------+
row in set (0.00 sec)



Leave a Comment / Note


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

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» NULL