how to replace multiple strings together in Oracle

前端 未结 5 1560
深忆病人
深忆病人 2020-11-30 13:08

I have a string coming from a table like \"can no pay{1},as your payment{2}due on {3}\". I want to replace {1} with some value , {2} with some value and {3} with some value

5条回答
  •  孤城傲影
    2020-11-30 13:36

    Although it is not one call, you can nest the replace() calls:

    SET mycol = replace( replace(mycol, '{1}', 'myoneval'), '{2}', mytwoval)
    

提交回复
热议问题