我不断遇到以下语句的错误:
cursor.execute("""INSERT into financial_statements (url)
VALUES (%s) WHERE provider=%s AND date=%s""", (url, provider, date))
我得到的错误是:
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near
'WHERE provider='ANGEL' AND date='2012-03-01'' at line 2")