Best unofficial Apache Server developers community |
|
I want to extract text from a column using regular expressions in Oracle 11g. I have 2 queries that do the job but I'm looking for a (cleaner/nicer) way to do it. Maybe combining the queries into one or a new equivalent query. Here they are: Query 1: identify rows that match a pattern:
Query 2: extract all matched text from a matching row.
I use PL/SQL to glue these 2 queries together, but it's messy and clumsy. How can I combine them into 1 query. Thank you. UPDATE: sample data for pattern 'BC':
Expected result is a table of 4 rows of 'BC'.
posted via StackOverflow
|