表'textconstraint'(collation utf8_general_ci)的结构如下:
+-----+---------+
| id | pattern |
+-----+---------+
| 11 | Ä |
| 27 | A |
+-----+---------+
当我查询
SELECT * FROM textconstraint WHERE pattern = 'A' LIMIT 1;
选择了以下行
+----+---------+
| id | pattern |
+----+---------+
| 11 | Ä |
+----+---------+
为什么A-umlaut
选择而不是A
?
PS我愿意SET NAMES UTF8