If I use a simple table such as :
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;
Both give me :
+------+
| a |
+------+
| 1 |
| 3 |
+------+
2 rows in set (0.00 sec)
So what is the difference between <>
and !=
mysql operators ?