The first is enough; the second is to redouble your efforts, replacing, for example, " c \" . You can check it yourself using
>>> c.execute("SELECT %s, %s", ('"', MySQLdb.escape_string('"'))) 1L >>> c.fetchall() ((u'"', u'\\"'),)
So you see that the second version will create an unnecessary \ before. " So, the first one is fine.
source share