There is "a'GG'g-CH2OHCH2CH2OH;v=0;"
string in a row of my database.
This string include "
signs. I want to change "
character with '
character. but I 'am getting this error message:
OperationalError: near "GG": syntax error.
My query is like that:
query_string = "UPDATE " + NameOfPartFuncTable + " SET " + ColumnNameForNamePartFunc + " = " + "\'a\'GG\'g-CH2OHCH2CH2OH;v=0;\'" + " WHERE (" + ColumnNameForNamePartFunc + " = " + "\"a\'GG\'g-CH2OHCH2CH2OH;v=0;\"" + " )"
I think this problem related to escape character problem. How can i solve this problem?