How to extract a string between brackets in oracle sql query

后端 未结 1 1537
既然无缘
既然无缘 2021-01-27 04:05

I am trying to extract a value between the brackets from a string. How can I do that.

For eg: I have this string : Gupta, Abha (01792)

And I want to get the resu

相关标签:
1条回答
  • 2021-01-27 04:25

    We can try using REGEXP_SUBSTR here:

    SELECT REGEXP_SUBSTR('Gupta, Abha (01792)', '\((.+)\)', 1, 1, NULL, 1) FROM dual;
    
    0 讨论(0)
提交回复
热议问题