できるPRO MySQL できるPROシリーズ Kindle版の内容をまとめる。
IS NULL
, IS NOT NULL
SELECT Name FROM country
WHERE Capital IS NULL;
MariaDB [world]> SELECT Name FROM country WHERE Capital IS NULL;
+----------------------------------------------+
| Name |
+----------------------------------------------+
| Antarctica |
| French Southern territories |
| Bouvet Island |
| Heard Island and McDonald Islands |
| British Indian Ocean Territory |
| South Georgia and the South Sandwich Islands |
| United States Minor Outlying Islands |
+----------------------------------------------+
7 rows in set (0.00 sec)