I\'m trying to get this Python MYSQL update statement correct(With Variables):
cursor.execute (\"UPDATE tblTableName SET Year=%s\" % Year \", Month=%s\" % Mo
You've got the syntax all wrong:
cursor.execute (""" UPDATE tblTableName SET Year=%s, Month=%s, Day=%s, Hour=%s, Minute=%s WHERE Server=%s """, (Year, Month, Day, Hour, Minute, ServerID))
For more, read the documentation.