您好我正在使用 python 和 sqlite3 來管理一個(gè)小型數(shù)據(jù)庫,我希望在項(xiàng)目結(jié)束時(shí)只有幾個(gè)盒子被清空。這是我嘗試做的,但它給了我錯(cuò)誤:cloc.execute("DELETE FROM {}(locpar) WHERE chat_id = (?);".format(item4,), (item,))cloc.execute("DELETE FROM {}(stoppar) WHERE chat_id = (?);".format(item4,), (item,))cloc.execute("DELETE FROM {}(locdes) WHERE chat_id = (?);".format(item4,), (item,))cloc.execute("DELETE FROM {}(stopdes) WHERE chat_id = (?);".format(item4,), (item,))輸出:sqlite3.OperationalError: near "(": syntax error這是數(shù)據(jù)庫轉(zhuǎn)換應(yīng)該是什么
如何使用python清空Sqlite3上的單元格
婷婷同學(xué)_
2023-01-04 16:33:47