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() # 关闭

相关文章:

  • 2021-11-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-09-29
  • 2021-12-19
  • 2021-11-14
相关资源
相似解决方案