网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  sqlite3 删除数据

sqlite3 删除数据

分类: IT文章 • 2025-01-07 23:04:43
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() # 关闭

相关推荐

  • springboot数据源配置
  • JMeter-BeanShell写数据到CSV文件
  • python数据库备份
  • springboot分布式数据源(Mysql)
  • oracle 多对一时只去前两条数据sql
  • rd /q/ /s output 命令行强制删除非空文件夹
  • jmeter的时间戳函数使用   在使用jmeter做接口测试的时候,经常会要用到日期这种函数,让系统自动生成一些格式化的数据,方便接口测试,jmeter自身就带有时间戳的函数
  • 图数据结构
  • 《HTML5数据推送应用开发》源码java版之一-----helloworld
  • sql完美删除外键约束,避免产生问题
  • Maximum Subarray
  • img标签设置默认图片 img标签设置默认图片
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号