I have to update many database records that have two columns; id
and content
.
The problem is that content
can contain any number of words and special characters and I want MySQL
to understand, that everything in the field, between the very first and last double quotes ("
), is an string, e.g.:
(1823423, "blabla <script type"something/something> somettext '_' "
+ " and more text + more special characters")
As I have about 5k similar records to update and this script can't be changed like adding escape characters (\"
), because it would stop working.