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() # 关闭
sqlite3 删除数据
cx = sqlite3.connect("c:/数据库地址")# 打开数据库cu = cx.cursor()# delete the rowcu.execute("delete from user where username=='majuan'")# Save (commit) the changescx.commit()# 提交cx.close()# 关闭转载于:https:/...
·
转载于:https://www.cnblogs.com/mmbbflyer/p/7729056.html
更多推荐
所有评论(0)