我想输出二级科目缩进,比如‘05会计’,‘0610会计年报’第2个为2级科目,首先是想判断出哪一个为2级科目出来,     select count(1)
      into v_jiacu
      from dual
     where ascii(substr('091ddafda', 3, 1)) not between ascii('0') and
              ascii('9');
  if (v_jiacu > 0) then
。。
end if;这样我试了不行的,因为中文字符转成ascii码开头是1的,有什么办法能分别出字符串指定位置为中文还是数字呢