Saya pikir ada beberapa gotcha, Anda dapat melihat dokumentasi di sini untuk beberapa detailnya :
http://dev.mysql.com/doc/refman /5.5/en/comparison-operators.html
Jika bidang Anda juga memiliki nilai nol, Anda juga harus melihat operator perbandingan aman-nol:http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#operator_equal-to
contoh :
mysql> select "a" > "a ", "A" > "a" , "aB" > "ab" , "a" >= NULL , "a" <=> NULL ;
+------------+-----------+--------------+-------------+--------------+
| "a" > "a " | "A" > "a" | "aB" > "ab" | "a" >= NULL | "a" <=> NULL |
+------------+-----------+--------------+-------------+--------------+
| 0 | 0 | 0 | NULL | 0 |
+------------+-----------+--------------+-------------+--------------+