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

1

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.