这是我的密码:
def update(id, title, author, year, isbn):
conn = sqlite3.connect("books.db")
cur = conn.cursor()
cur.execute("UPDATE book SET title=?, author=?, year=? WHERE id=?", (title, author, year, isbn, id))
conn.commit()
conn.close
获取以下错误: Incorrect number of bindings supplied. The current statement uses 4, and there are 5 supplied.
我下面的udemy教程使用了这个精确的代码。这里的sql查询有问题吗?
暂无答案!
目前还没有任何答案,快来回答吧!