Why doesn't SQL support “= null” instead of “is null”?

前端 未结 12 2041
不知归路
不知归路 2020-11-29 11:11

I\'m not asking if it does. I know that it doesn\'t.

I\'m curious as to the reason. I\'ve read support docs such as as this one on Working With Nu

12条回答
  •  时光取名叫无心
    2020-11-29 11:38

    Because in ANSI SQL, null means "unknown", which is not a value. As such, it doesn't equal anything; you can just evaluate the value's state (known or unknown).

提交回复
热议问题