function REGEXP_SUBSTR(String, pattern, position, occurrence, modifier)正則表達式
__srcstr :須要進行正則處理的字符串sql
__pattern :進行匹配的正則表達式字符串
__position :起始位置,從第幾個字符開始正則表達式匹配(默認爲1)it
__occurrence :標識第幾個匹配組,默認爲1io
__modifier :模式('i'不區分大小寫進行檢索;'c'區分大小寫進行檢索。默認爲'c'。)function
一、查詢使用正則分割後的第3個值,也就是:ST_0000115240查詢
[sql] di
SELECT REGEXP_SUBSTR('${ST_0000115239}-(${ST_0000115239}+${ST_0000115240}+${CA_0000115245}+${ST_0000115241})/4','\w{13}',1,3,'c') AS STR FROM DUAL;position
結果:ST_0000115240字符