what does “delete from table where NULL = NULL” means?

前端 未结 8 1482
抹茶落季
抹茶落季 2021-02-18 12:35

What does delete from table where NULL = NULL mean?

8条回答
  •  渐次进展
    2021-02-18 13:23

    In SQL, there are three logical values, namely TRUE, FALSE, and UNKNOWN. when we compare null to null, using null=null, the operation will return UNKNOWN. Moreover,In the WHERE clause all UNKNOWN values are filtered out.Hence the query does nothing.

提交回复
热议问题