Need to replace HTML single-quote entity in MySQL
Posted
by modulaaron
on Stack Overflow
See other posts from Stack Overflow
or by modulaaron
Published on 2010-04-01T23:37:57Z
Indexed on
2010/04/01
23:43 UTC
Read the original article
Hit count: 357
Hi, I currently have the following MySQL statement to replace the HTML entity for a single quote with an actual single quote:
update photo_galleries replace(title, ''', '\'');
This statement returns an error. I have tried adding additional backslashes, but this does not help at all. I want to run this command using pure SQL (no PHP, etc.). Any suggestions are welcome and appreciated. Thanks.
© Stack Overflow or respective owner