2.1 字符集转换

select a,b,c,d,
       --dump(a,1016) ,
       --dump(b,1016) ,
       convert(utl_raw.cast_to_varchar2(c),'ZHS16GBK','AL16UTF16') c1,
       convert(utl_raw.cast_to_varchar2(d),'ZHS16GBK','AL16UTF16') c2,
       convert(a,'ZHS16GBK','AL16UTF16') e,
       convert(a,'zhs16cgb231280','AL16UTF16') f
  from (select unistr('\6682\65e0') a,
               '暂无' b,utl_raw.cast_to_raw(unistr('\6682\65e0')) c,
               utl_raw.cast_to_raw('暂无') d
          from dual) ta;

你可能感兴趣的:(2.1 字符集转换)