您好,欢迎访问一九零五行业门户网

mysql点滴_02程序中执行sql语句报字符集问题解决_MySQL

程序中执行 select t.event_type_id from ratable_event_type t where t.name='帐期末费用转移事件' 报错
错误码:1267 不合法的混合字符集。
错误信息:mix of collations (gbk_bin,implicit) and (latin1_swedish_ci,coercible) for operation '='
解决办法:用binary()函数统一字符集select t.event_type_id from ratable_event_type t where t.name=binary('帐期末费用转移事件')
其它类似信息

推荐信息