cursor = connect.cursor()
cursor.execute(
    """
       UPDATE tblTableName
       SET Year=%s, Month=%s, Day=%s, Hour=%s, Minute=%s
       WHERE Server=%s
    """
    , (Year, Month, Day, Hour, Minute, ServerID))
connect.commit()
connect.close()
Оператор обновления Python MYSQL