Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql utf8“U unicode”ci:如何支持扩展;像“什么?”;?_Mysql_Utf 8_Collation_Utf8mb4 - Fatal编程技术网

Mysql utf8“U unicode”ci:如何支持扩展;像“什么?”;?

Mysql utf8“U unicode”ci:如何支持扩展;像“什么?”;?,mysql,utf-8,collation,utf8mb4,Mysql,Utf 8,Collation,Utf8mb4,它在报告中指出: utf8_unicode_ci支持诸如扩展之类的映射;也就是说,当一个字符与其他字符的组合相等时。例如,在德语和其他一些语言中,“ß”等于“ss” 我用一个utf8mb4_unicode_ci对照表尝试了这一点,其中一行的名称为Heß select * from users where name = "Hess" 返回带有Heß的行。但是,当我对like语法执行相同操作时 select * from users where name LIKE "%Hess%" 它不返回匹

它在报告中指出:

utf8_unicode_ci支持诸如扩展之类的映射;也就是说,当一个字符与其他字符的组合相等时。例如,在德语和其他一些语言中,“ß”等于“ss”

我用一个utf8mb4_unicode_ci对照表尝试了这一点,其中一行的名称为
Heß

select * from users where name = "Hess" 
返回带有
Heß
的行。但是,当我对like语法执行相同操作时

select * from users where name LIKE "%Hess%"
它不返回匹配项


为什么会发生这种情况,如何解决

LIKE的算法令人难以置信。