【发布时间】:2011-10-05 19:33:00
【问题描述】:
好的,我查了一下,似乎没有人问过这个问题。
所以我有两个字:
thiep cuoi
thiệp cưới
问题是当我 COUNT() 时,这些 mysql 会将这两者结合为相同的。比如这个sql:
#lets assume these two words have an id of 1 and 2 and that the column name
#in the table is `word`
SELECT `word`, COUNT(`word`)
FROM table_name
WHERE `id` IN(1,2)
GROUP BY `word`;
将两个单词作为一行返回,计数为 2。这些不是通过 UTF-8 的相同单词,如何在 MySQL 中绕过这种行为? MySQL 不是按 UTF-8 分组而不转换为 ASCII 吗? :/
【问题讨论】:
标签: mysql string utf-8 count ascii