sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError)

 

源代码:

sql = """
              UPDATE t_datav SET info ="%s" WHERE category ="mock"
          """ % (res)

改后:

sql="""
    UPDATE t_datav SET info ="%s" WHERE category ="mock"
"""%(pymysql.escape_string(res) )

你可能感兴趣的:(mysql)