cx = sqlite3.connect("c:/数据库地址")  # 打开数据库
cu = cx.cursor()
# delete the row
cu.execute("delete from user where username=='majuan'")
# Save (commit) the changes
cx.commit() # 提交
cx.close() # 关闭

转载于:https://www.cnblogs.com/mmbbflyer/p/7729056.html

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐