sql - Parsing the column to get desired output -


in 1 of table have column description in error msg stored. error msg can of below format.

a.failed due warnings.err: [] | warnings: [war1,war2] | warn_fina [war1,war2]  | othererrors [] b.failed due errors.err: [err1,err2] | warnings: [war1,war2] | warn_fina [] | othererrors [] c.reading failed stacktrace bla bla. d.othererror stacktrace bla bla. 

now need write select query selects columns description column output need below

if of type or b output : err1,err2,war1,war2 error , warnings in first 2 contetns in brackets. if not of or b nothing should come column.

i think oracle reg expression helpful.

can achieve above criteria 1 select query? need errorcodes, warning codes present in brackets. means 2 subgroups string.

i errors , warning using regexp_replace , regexp_substr functions.

i need 1 more thing can write select *,regexp_replace() table?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -