テーブル'textconstraint'(照合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