MySQL使用like查找汉字乱码 Posted on 2017-02-08 Edited on 2025-07-25 Symbols count in article: 134 Reading time ≈ 1 mins.第一种解决办法:BINARY在关键字之前加上:BINARY,会使关键字强制转换为二进制字符串1select id form t where chinese like **BINARY** %汉字%第二种解决办法:改关键字类型把关键字的类型改成:BINARY这两种办法都可以解决乱码问题Related Posts1103 host 'xxx' is not allowed to connect to this mysqlMySQL - Data truncation:Incorrect datetime valueMySQL decode - MySQL中类似oracle的decode实现方法MySQL update语句MySQL 常用操作 - 命令行Post author: hisenyuanPost link: http://hisen.me/20170208-MySQL使用like查找汉字乱码/Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.