import sqlite3
con=sqlite3.connect('test1.db')
try:
con.execute('create table people (name,phone,city)')
except:
pass
con.execute('insert into people values ("toby","555-1212","Boston")')
con.commit()
cur=con.execute('select * from people')
print(cur.__next__())
然后我想把整个表test1.db都删除(而不是只删除其中的记录),应该怎么写?
江户川乱折腾
相关分类