MAHESH A SONI
MAHESH A SONI

Reputation: 9

replace function in dml statements in oracle 8i

Can we use Replace() function in an update statement ? If yes then how?

I have a column enrollno having values like '800-00001' to '800-01800'. I want to replace initial '800-' to '800' in all 1800 records. (Output should be '8000001' to '80001800')

Is it possible through replace function or any other option is there in ORACLE8i ?

MaheshA...

Upvotes: 1

Views: 359

Answers (1)

Gary Myers
Gary Myers

Reputation: 35401

update table set col = replace(col,'800-','800')

Upvotes: 2

Related Questions