import sqlite3con=sqlite3.connect('test1.db')try:con.execute('create table people (name,phone,city)')except:passcon.execute('insert into people values ("toby","555-1212","Boston")')con.commit()cur=con.execute('select * from people')print(cur.__next__())然后我想把整個表test1.db都刪除(而不是只刪除其中的記錄),應該怎么寫?
- 1 回答
- 0 關注
- 6106 瀏覽
添加回答
舉報
0/150
提交
取消