DB/MySQL
[Syntax] See Records with NULL
See_the_forest
2022. 9. 15. 14:32
In MySQL, NULL values excluded automatically while we querying data. So to see values with all NULL values, we have to add more condition to original query statement.
SELECT name
FROM customer
WHERE referee_id <> 2 OR referee_id IS NULL;
Source from :