mysql left join : the value NULL is returned if there is no matching row, but I want a null value -
lets'suppose 2 (simplified) tables, user , house :
id | firstname 1 | charles 2 | frank 3 | mark user_id | city 1 | london 3 | paris select firstname, house.city user left join house on user.id = house.user_id;
the column city declared "default null"; result :
firstname | city charles | london frank | null mark | paris
this result stored in other table
in table, later, want test "city null" have test "city = 'null' "
so how can force left join set real null value when there's no match ?
Comments
Post a Comment