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.
我设法通过设置字符集将特殊字符插入表中
CHARSET=utf8;
事情是,当我在表上运行以下查询时
SELECT * FROM table WHERE word = 'francais';
它返回“francais”和“français”!
这对我的情况不太理想。我不知道为什么会这样做,因为它们只是不同...
谁能告诉我如何避免这种情况?将不胜感激。
勋爵
尝试使用排序规则,例如,
select * from table where word = 'francais' collate utf8_bin;