![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
cooloyty
stay hungry stay foolish
展开
-
Google包装的SQLite的增删改查
public class CopyOfPersonDao { private SQLiteOpenHelper helper; /** * 在构造方法里完成helper的初始化 */ public CopyOfPersonDao(Context context){ helper = new PersonHelper(context); } /** * 添加一条记录原创 2013-08-20 20:52:37 · 1220 阅读 · 0 评论 -
Android之SQLiteOpenHelper的使用
/** * SQLiteOpenHelper为Android提供的管理数据库的工具类,管理数据库的创建和版本更新 * 一般用法是创建SQLiteOpenHelper的子类,并扩展它的onCreate()和onUpgrade() */ public class PersonHelper extends SQLiteOpenHelper { /** * 数据库的构造方法,用来原创 2013-08-20 19:48:29 · 1108 阅读 · 0 评论 -
SQLite数据库中的SQL语句
一.如何获取SQLite最新版本 官方站点:http://www.sqlite.org/ 从http://www.sqlite.org/网站的Download页面获取 二.Windows下的SQLite的源代码是哪个软件压缩包? sqlite-amalgamation-3_6_22.zip是SQLite的windows下源码文件 三.Window下的SQLite命令行工具 sqlite转载 2013-08-21 19:26:29 · 1838 阅读 · 0 评论 -
SQLite的事务
事务(Transsaction)是数据库的逻辑工作单位,由用户定义的一组数据库操作序列组成,序列中的操作要么全做要么全不做。 Transactions can be nested. When the outer transaction is ended all of the work done in that transaction and all of the nested transac原创 2013-08-21 20:03:22 · 650 阅读 · 0 评论