cx = sqlite3.connect("c:/数据库地址")  # 打开数据库
cu = cx.cursor()
# query the table
rows = cu.execute("select * from user")
# print the table
for row in rows:
print(row)
cx.commit() # 提交
cx.close() # 关闭

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-08-04
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案