如果我使用一个简单的表格,例如:
create table test ( a int );
insert into test values ( 1 ) , ( 2 ) , ( 2 ) , ( 3 );
select * from test where a <> 2;
select * from test where a != 2;
两者都给我:
+------+
| a |
+------+
| 1 |
| 3 |
+------+
2 rows in set (0.00 sec)
<>
那么和!=
mysql 操作符有什么区别呢?