We have varchar2(250) column that have various text data we want to replace with other specific text. Note: I do not want to use multiple replace function for this requirement, is there is any better way to do it
requirement is to:
Replace < with "less than"
Replace > With "greater than"
Replace & With and
For example data in table is:
"amount must be < 1 & > 2"
Output of SQL should be:
"amount must be greater than 1 and less than 2"
REPLACEwhen it is what meant for this?