0

I have sets of field values in mysql table like

aaaworld
worldme
make
pull
pullme
aaatag
tagbbb
aaamousebbb

Now I want to remove every occurance of aaa and bbb and replace the same with "", I tried with below expression

SELECT REPLACE(keywordSupplied,"aaa|bbb","") FROM table1

here it is replacing only the aaa part with "" while bbb part remains as it is. How can I replace occurances of both

nikhil
  • 877
  • 3
  • 11
  • 36

1 Answers1

0

You can use "||" instead of "|".It might work.

adarsh hota
  • 327
  • 11
  • 23