Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用utf8_bin而不是utf8_general_ci.
utf8_bin
utf8_general_ci
使用utf8_general_ci,相似字符(likei和ï)在比较和排序中被视为相同字符。比较也是不区分大小写的(因此是_ci),这意味着i和I也被视为相同。
i
ï
_ci
I
其他排序规则,比如utf8_unicode_ci做更好的排序,但在比较时仍然“失败”。
utf8_unicode_ci