sql-parametrized-query

Python MYSQL update statement

Python MYSQL update statement Question: I’m trying to get this Python MYSQL update statement correct(With Variables): cursor.execute (“UPDATE tblTableName SET Year=%s” % Year “, Month=%s” % Month “, Day=%s” % Day “, Hour=%s” % Hour “, Minute=%s” Minute “WHERE Server=%s ” % ServerID) Any ideas where I’m going wrong? Asked By: Adam Chetnik || Source …

Total answers: 5