MySQL的状态[HY000]错误码[1271]
一个in的查询语句(select * from xxtable where c_name in (?,?,?,?)),出了这个错误。
到官网上搜一了圈,得到的说明只有这些:
[code]
错误:1271 SQLSTATE: HY000 (ER_CANT_AGGREGATE_NCOLLATIONS)
消息:对于操作'%s',非法混合了校对。
Error: 1271 SQLSTATE: HY000 (ER_CANT_AGGREGATE_NCOLLATIONS)
Message: Illegal mix of collations for operation '%s'
[/code]
对应的中英文地址分别为:
http://dev.mysql.com/doc/refman/5.1/zh/error-handling.html
http://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html