Skip to content
Advertisement

oracle get all matched occurrences from a column

I have a table, which has 2 columns: ID & JOB_Description(Text). I would like to write an oracle SQL to extract all substrings in the Description column which match a regular pattern.

However, I have learnt how to extract matched substrings from a string with below SQL, but I have no idea to apply below SQL on all data in one go on the aforementioned table(column:JOB_Description).

SQL to get all matched occurrences from a string:

Advertisement

Answer

you can try this query out.

Result:

A good explanation of the last two lines can be found here

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement