Loving Coding & Visual Design
Mysql查询错误:Illegal mix of collations
UTF编码的Query like查询latin1的数据表时会出现如下错误:
Mysql Errors:
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'
解决办法是加上set names latin1。
Mysql Errors:
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'
解决办法是加上set names latin1。
最 近 文 章
- Twitter REST API升级到1.1 - Wed, 04 Sep 2013 15:24:51 +0000
- 网页制作带给我的那份宁静 - Tue, 27 Aug 2013 16:14:48 +0000
- mysql error: Got error 28 from storage engine - Fri, 14 Jun 2013 11:16:59 +0000
- 初学ios遇到的问题 - Fri, 07 Jun 2013 06:15:56 +0000
- 面向对象编程的SOLID原则 - Wed, 22 May 2013 19:26:07 +0000
- 为什么我对Flash的前途保持谨慎乐观 - Thu, 25 Apr 2013 13:34:45 +0000
- 64位iis6运行PHP的问题 - Tue, 26 Mar 2013 14:45:32 +0000
- 关于合租Linode VPS空间 - Fri, 15 Feb 2013 10:56:46 +0000
- 关于UnicodeDecodeError: 'ascii' codec can't decode的错误 - Fri, 25 Jan 2013 18:40:55 +0000
- 悲催的Web Coder转行开个小店都这么难 - Mon, 17 Dec 2012 13:16:57 +0000