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.
我有以下选择语句,我试图在其中搜索可能包含重音符号的玩家名字和姓氏。
$sql = " SELECT * FROM player WHERE player.player_first LIKE '%$first%' AND player.player_last LIKE '%$last%' ";
我在两个 LIKE 子句之前添加COLLATE Latin1_General_CI_AIafter ,但这不起作用并返回错误。
COLLATE Latin1_General_CI_AI
任何帮助,将不胜感激。
根据MySQL doc,排序规则Latin1_General_CI_AI不存在。
Latin1_General_CI_AI
试试latin1_general_ci吧。
latin1_general_ci