标签: python sql parameters pyodbc
crsr.execute("UPDATE stock SET stock_amount = ? WHERE stock_Product = ?", amount, int(item)) cnxn.commit() #Updates stock amount crsr.execute("""SELECT * FROM stock""") rows = crsr.fetchall()
每当我运行它时,它说应该有4个参数