if 语句查询判断中文有问题.
我的表和字段是GBK字符编码,select fr_date as date,fr_name as username,fr_rmb as amt,if(fr_zhye='冻结','消费','存入') as type,'本金' as fundtype,fr_type as leibie,fr_zhye as balance,fr_bank as remark,fr_site as site from th_zhmx_freeze
fr_zhye字段也是中文值,查出的结果type竟然没按条件显示出来(fr_type值是“冻结”的也显示“存入”),且字段值没有空字符串。