

Python使用sqlite3更新資料庫的時候值總是missingvalue
uj5u.com熱心網友回復:
在 db.execute 前,先 print(result) 看看 result 是啥。感覺是你的 self.label_22 和 label23 的值沒取到。
uj5u.com熱心網友回復:

取到了,就是更新不了資料庫。。
uj5u.com熱心網友回復:
試試這個db.execute('update "student" set "record"=? where "ID"=1', (result, ))
在表名和列名上加個雙引號。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/131194.html
上一篇:Python的簡單問題。
