程序中执行 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('帐期末费用转移事件')