</pre><pre name="code" class="sql">
字符集不匹配问题:
<span style="font-family: SimSun; font-size: 14px; background-color: rgb(255, 255, 255);"></span><pre name="code" class="sql">select case 洗井原因
when '分注井测试前洗井'
then '1'
when '长关井开井前洗井'
then '2'
when '吸水能力下降洗井'
then '4'
else '99' end 洗井原因 from wash_v_pro2 t
代码报错
研究发现t.洗井原因是nvarchar2类型的,when的条件''中的汉字是