I currently have a bunch of strings inside an Oracle database column that I need to change, right now I am running multiple update statements to accomplish this.
UPDATE TABLE1 SET COLUMN1 = REPLACE
(COLUMN1, 'ABC', 'SR1')
UPDATE TABLE1 SET COLUMN1 = REPLACE
(COLUMN1, '123', 'SR2')
UPDATE TABLE1 SET COLUMN1 = REPLACE
(COLUMN1, 'XYZ', 'SR3')
UPDATE TABLE1 SET COLUMN1 = REPLACE
(COLUMN1, '789', 'SR4')
Is there anyway for me to get this done in one go around for example
UPDATE TABLE1
SET
COLUMN1 = REPLACE(COLUMN1, 'XYZ', 'SR3'),
COLUMN1 = REPLACE(COLUMN1, '789', 'SR4')