MySQL中“非法混合排序规则”错误的疑难解答当试图通过MySQL中的存储过程进行选择时,我会得到以下错误。非法组合排序规则(latin 1_General_cs,隐式)和(latin 1_General_ci,隐式)用于操作‘=’知道这里可能出了什么问题吗?表的排序是latin1_general_ci以及WHERE子句中列的latin1_general_cs.
3 回答
肥皂起泡泡
TA贡献1829条经验 获得超6个赞
COLLATE
WHERE
WHERE 'A' COLLATE latin1_general_ci = 'A' COLLATE latin1_general_cs
COLLATE
SELECT * FROM table ORDER BY key COLLATE latin1_general_ci;
BINARY
二进制str是强制转换(str为二进制)的缩写。
SELECT * FROM table WHERE BINARY a = BINARY b;
SELECT * FROM table ORDER BY BINARY a;
添加回答
举报
0/150
提交
取消