select id,substr(res,instr(res,'-')+2,length(res)-instr(res,'-')-1) res from 表;

解决方案 »

  1.   

    select id,substr(res,instr(res,'--')-length(res)+1) from 表;
      

  2.   

    ORARichard(没钱的日子好难过啊) 的完全正确:)
      

  3.   

    未找到预期from关键字。是什么意思啊???谢谢老大
      

  4.   

    如你写了  select 1
    那么你应该写成  select 1 from dual;
      

  5.   

    select id,substr(res,instr(res,'--')+2,length(res)-instr(res,'--')-1) res from 表;
      

  6.   

    ok, ORARichard(没钱的日子好难过啊) 解释的完全正确,谢谢了,我已经试验了。