I have a column with a name THE_VALUEin a table TABLE_Athat contains data similar to the following, i.e. several lines of selection can be:
tom:harry, sally, jeff
state(vic,nsw), england, qwerty(aaa,bbb, cccc):qaz
What I need to do to update this column using Oracle 10g sql and replace all commas except those that are in brackets with a colon, so basically the end result will be:
tom:harry:sally:jeff
state(vic,nsw):england:qwerty(aaa,bbb, cccc):qaz
I also want to make sure there are no spaces after the colon after the update.
I tried using the function replace, but I'm not sure how to not include commas in brackets, since I don't want them to change to a colon.
Thanks.
tonyf