Lets'suppose 2 (simplified) tables, user and house :
id | firstname
1 | Charles
2 | Frank
3 | Mark
user_id | city
1 | London
3 | Paris
select firstname, house.city
from user
left join house on user.id = house.user_id;
the column city is declared "DEFAULT NULL"; the result is :
firstname | city
Charles | London
Frank | NULL
Mark | Paris
This result is stored in an other table
In this table, later, I would want to test "city is null" but I have to test "city = 'NULL' "
So how can I do to force the left join to set real a null value when there's no match ?