我在MySQL 5.0.88上使用utf8 charset和utf8_unicode_ci collation运行以下select语句:
SELECT * FROM table WHERE surname = 'abcß';
+----+-------------------+------+
| id | forename | surname |
+----+-------------------+------+
| 1 | a | abcß |
| 2 | b | abcss |
+----+-------------+------------+
Run Code Online (Sandbox Code Playgroud)
SELECT * FROM table WHERE surname LIKE 'abcß';
+----+-------------------+------+
| id | forename | surname |
+----+-------------------+------+
| 1 | a | abcß |
+----+-------------+------------+
Run Code Online (Sandbox Code Playgroud)
根据http://dev.mysql.com/doc/refman/5.0/en/charset-unicode-sets.html德国特殊字符ß= ss表示utf8_unicode_ci,但为什么它只适用于"="运算符和不喜欢?我有一个电话簿应用程序,我迫切需要两个一起工作.