2

What is wrong with this SQL line? I've verified the types are correct.

c.execute('''INSERT into stock_table (item_name, stock, price) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE stock=VALUES(stock);''', (str(entry["name"]), int(entry["amount"]), float(entry["price"])))
gannonbarnett
  • 1,638
  • 1
  • 16
  • 28

0 Answers0