sqilte 模块
来源:互联网 发布:artrage for mac 编辑:程序博客网 时间:2024/04/29 16:06
连接数据库
con.sqlite.connect('数据库文件路径及其名称')con.sqlite.connect(':memory') #--内存数据库#以上数据库连接对像
获取“游标” cur = con.cursor()
用游标对象方法操作数据库
cur.executemany() cur.execute() cur.executescript() cur.fetchone() cur.fetchall() cur.fetchmany
提交事物
con.commit()con.rollback()
关闭连接
con.close
实现CRUD
create 创建表
create table table_name(col_name type,...)
insert 插入数据
insert into table_name(col_name) values()
retrieve 检索数据
select * from table_name
update 更新数据
update table_name set ... where
DELETE 删除数据
delete from table_name where
0 0
- sqilte 模块
- android sqilte
- SQilte/DataSet
- sqilte操作 -- 取排序的第N条数据
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 模块
- 顺来几个哈希函数,使用时记得对SIZE取余不然崩了
- Head First 设计模式 --工厂模式
- AP核MAILBOX地址的初始化和启动过程(基于ARM64 的 APCI Parking protocol)
- 88.You need to calculate the number of days from 1st January 2007 till date.
- Ubuntu改装成Windows系统
- sqilte 模块
- javaWeb2.1 XML解析方式之DOM解析
- Android Volley完全解析(二),使用Volley加载网络图片
- POJ 2940 Wine Trading in Gergovia【贪心】
- Android定制化自己的开锁界面
- shell变量的组合变量
- 什么时候使用CountDownLatch
- [C++] C++学习代码
- matlab如何查看已经出来的图片窗口中物体的各向视图