大家好,我在我的代码中有一个问题,我试图从树视图上的数据库中显示我的表,但我看不到这个错误"TypeError:'sqlite3.Cursor‘object is not subscriptable“可能是因为我的数据库中有三个表,'#Designation',i['Designation'])下面是数据库文
我在Sqlite3数据库上运行以下Python3代码: db.execute("UPDATE user SET ? = ? WHERE id = ?", (name, quantity, str(g.user['id']))) 其中db是我的游标对象。但是,这会产生错误sqlite3.OperationalError: near "?"