I try this in PHPMyadmin:
Update wp_1_posts
SET post_content='<strong>Hello </strong> <a href="http://stackoverflow.com">stackoverflow</a> you think you're good at sql.\n then answer\n'
WHERE post_ti<tle = 'stupid example'
and it says bad syntax. Why ?
With MySQL, single-quotes inside a string have to be escaped, putting a
\before them :As a reference, you can take a look to this section of the MySQL manual :
In your case, your query should look like this :
Note the
\I’ve added inthink you\'re good.