我在Mysql数据库[库尔德字母]中使用Ûû-Şş-Çç-Êê-Îî
+ [A-z]。
问题是当我搜索以下内容时:
select * from test where col like '`ç`%'
结果如下:
ç
= c,
û
= u,
ş
= s,
î
= i,
ê
= e我应该使用什么排序规则或技巧来避免此问题?
最佳答案
使用... collate utf8_bin
:
select * from test where col like 'ç%' collate utf8_bin;
请参阅此post和此Fiddle。
关于mysql - 使用非英语字母的php与sql排序规则,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21172589/