我有这个查询,我认为它会自己说话:
mysql> select id,email from members where email LIKE "%abraham.sustaita@gmail.com%";
+--------+----------------------------+
| id | email |
+--------+----------------------------+
| 272118 | abraham.sustaita@gmail.com |
+--------+----------------------------+
1 row in set (0.69 sec)
mysql> select id,email from members where email = "abraham.sustaita@gmail.com";
Empty set (0.00 sec)
mysql> select id,email from members where id = 272118;
Empty set (0.00 sec)
数据存在,但如果我使用 LIKE 以外的其他数据,它会返回空...