例如:あア分组时这两个字符合并 编码:utf8mb4 两个字符应该使用不同的编码,为什么会这样?
>CREATE TABLE `test` (
>`keyword` varchar(20) NOT NULL,
>`show` int(11) NOT NULL
>) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
>insert into test (keyword,show) values('あ',5),('ア',10);
>select keyword,sum(show) from test group by keyword;
>+---------------------------+----------------+
>| keyword | sum(show) |
>+---------------------------+----------------+
>| あ | 15 |