程序中执行 “SELECT t.EVENT_TYPE_ID FROM RATABLE_EVENT_TYPE t WHERE t.NAME=’帐期末费用转移事件’” 报错
错误码:1267 不合法的混合字符集。
错误信息:mix of collatio本文来源gao@!dai!ma.com搞$$代^@码!网!ns (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(‘帐期末费用转移事件’)