代码来自MySQLCookbook,第3版
CREATE TABLE t (c CHAR(2) CHARACTER SET utf8);
INSERT INTO t (c) VALUES('cg'),('ch'),('ci'),('lk'),('ll'),('lm');
SELECT c FROM t ORDER BY c COLLATE utf8_general_ci;
得到cg,ch,ci,lk,ll,lm
SELECT c FROM t ORDER BY c COLLATE utf8_spanish2_ci;
在书中,结果是cg,ci,ch,lk,lm,ll
但是当我在MariaDB 10.2下运行查询时,
结果与" general"整理:
cg,ch,ci,lk,ll,lm
根据这本书," ch"和" cl"在西班牙语排序中被视为单个字符 第二个查询的结果是MariaDB中的错误的证据吗?