首页 >数据库 >mysql教程 >vba 连接mysql case when 输出中文乱码

vba 连接mysql case when 输出中文乱码

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-06 09:38:322892浏览

mysqlvba

strsql = "SELECT ui.user_name ,bo.id, " & _
"CASE WHEN p_id =77 THEN '名校贷' WHEN p_id =83 THEN '名校贷应急包' else '' END ," & _
"CASE WHEN bo_is_success=0 THEN '待处理' WHEN bo_is_success=1 THEN '成功' WHEN bo_is_success=2 THEN '拒绝' WHEN bo_is_success=3 THEN '流标' else'' END,“&_
............
case when then 后面的中文输出在recordset中是乱码
流?
流?
流?
流?
拒?
流?
流?

请问如何解决,已设置set names GBK

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn