Why does NULL = NULL evaluate to false in SQL server

前端 未结 19 2019
一向
一向 2020-11-22 05:02

In SQL server if you have nullParam=NULL in a where clause, it always evaluates to false. This is counterintuitive and has caused me many errors. I do understa

19条回答
  •  野的像风
    2020-11-22 05:46

    Maybe it depends, but I thought NULL=NULL evaluates to NULL like most operations with NULL as an operand.

提交回复
热议问题