0

How can I "REMOVE" &' character from a string in Oracle 11g? I tried the following by I receive a prompt that asks me 'AMP' (Enter Substitution Value) value... I don't know what's the problem. Most of the questions I found out (including one which is marked duplicate of this question) are talking about escaping the ampersand. In my situation it is a field which keeps the URL of the certain reviews and it has "&" with it which needed to be removed. Here is the code:

  UPDATE table_name
  set name=REPLACE(name, "&", '&')

Please let me know if this is not the right way, then what is? Help is much appreciated.

bigZbuzzzinga
  • 17
  • 1
  • 5

1 Answers1

0

Use this... Replace(name, chr (38)||'amp', '') and for like also.

Vinish Kapoor
  • 669
  • 1
  • 7
  • 13