Using Regular Expressions in Oracle

<Example>

=======================================

select regexp_substr('@@/231@@_3253/ABc','@*[[:alnum:]]+',1,2) from dual;

image

=======================================

SELECT REGEXP_SUBSTR (
          'RMA(25100001/2) IR(1040855/3) ISO(251000013/1.10) MTI(175709008)',
          '[[:alnum:]]+',1,6)
  FROM DUAL 

----Result-----

3

=======================================

延伸閱讀:http://orafaq.com/node/2404

arrow
arrow
    全站熱搜

    Somebaby 發表在 痞客邦 留言(0) 人氣()