首頁 >資料庫 >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