Why is null<>null=null in mysql

后端 未结 2 554
情深已故
情深已故 2021-01-24 16:40

I am going through a tutorial for MySql, and I came through the following query.

mysql> select null <> null;
+--------------+
| null <> null |
+--         


        
2条回答
  •  耶瑟儿~
    2021-01-24 17:14

    select null <> null;
    

    Here <> is not null safe operator. It is Not equal operator. Refer official website of mysql.
    Null safe operator is <=>

提交回复
热议问题