Link to home
Start Free TrialLog in
Avatar of heavymark
heavymark

asked on

MySQL Find and Replace Characters

I need to do a find and replace mysql statement.

I wrote this statement to replace the odd characters with a single quote in table jos_content and row fulltext.

update jos_content set fulltext = replace(fulltext, 'â¬"', '\'')

I get an error. I have tried finding the html entities for each of the three characters and replacing them but still get an error. Anythoughts?

Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

How big is this table?  If it is less than a few million lines and you do not have to do this every few seconds, you might want to consider a PHP + MySQL solution.

Also, "I get an error." is not a standard message that I recognize.  We can have a better chance of helping you if you show us the inputs, your code, the outputs and tell us about your desired outputs.

Best regards, ~Ray
ASKER CERTIFIED SOLUTION
Avatar of heavymark
heavymark

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"I did not provide the exact error message, because it was not relevant to the solution."

Wow, I wish the developers who write software could know they were wasting their time working on error messages.  Think of the time we could all save if we didn't need the error messages!

;-)

~Ray