I have a rough understanding of why = null
in SQL and is null
are not the same, from questions like this one.
But then, why is
update table
set column = null
a valid SQL statement (at least in Oracle)?
From that answer, I know that null
can be seen as somewhat "UNKNOWN" and therefore and sql-statement with where column = null
"should" return all rows, because the value of column
is no longer an an unknown value. I set it to null
explicitly ;)
Where am I wrong/ do not understand?
So, if my question is maybe unclear:
Why is = null
valid in the set
clause, but not in the where
clause of an SQL statement?