Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I use this to replace \" with " :
\"
"
UPDATE wp_posts SET post_content = REPLACE (post_content, '\"', '"')
That query returns 0 row(s) affected and nothing happens.
0 row(s) affected
What is wrong this this query?
You need to escape your backslash:
UPDATE wp_posts SET post_content = REPLACE (post_content, '\\"', '"')
Add a comment
The backslash charecter is escape character in MySQL so you need to escape it itself like this:
UPDATE wp_posts SET post_content = REPLACE(post_content, '\\"', '"')
use:
REPLACE(`post_content`, '\\"', '"')
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.