Android:Sqlite 常见两个类SQLiteOpenHelper,SQLiteDatabase 随记
2015-12-14 22:26
633 查看
1)SQLiteOpenHelper:作用管理数据库的创建和版本的管理
官方英文表达: A helper class to manage database creation and version management. You create a subclass implementing {@link #onCreate}, {@link #onUpgrade} and optionally {@link #onOpen}, and this class takes care of opening the database if it exists, creating it if it does not, and upgrading it as necessary. 2)SQLiteDatabase:
官方英文表达:Exposes methods to manage a SQLite database. SQLiteDatabase has methods to create, delete, execute SQL commands, and perform other common database management tasks. execSQL(sql) rawQuery delete update insert
相关文章推荐
- Android内存优化(使用SparseArray和ArrayMap代替HashMap)
- Android:Fragment+ViewPager+FragmentPagerAdapter
- 【Android】在浏览器中打开url链接,打开Service,复习IntDef
- Android Studio 常用快捷键
- Android:FragmentTransaction的commit 和addToBackStack的方法随记
- Android 屏幕旋转 处理 AsyncTask 和 ProgressDialog 的最佳方案
- android volley通信框架解析
- android小技巧
- Android:菜单随记
- Android:Fragment 初步之旅 随记一
- Android学习笔记——SwipeRefreshLayout 官方下拉刷新控件介绍
- Android-JNI(1)-简介
- Android:Activity 相关的东西 随记一
- Android拓展系列(5)--CyanogenMod源码下载和编译(Android ROM定制基础篇)
- Android:ViewPager 随记一
- Android Xfermode 真实 实现全面、圆角图片
- Json数据格式介绍、使用Android自带类库完成Json生成与解析
- Android: ListView 性能调优二 随记
- Android自定义类似联系人列表的 快速索引控件
- Android开发相关的Blog推荐——跟随大神的脚步才能成长为大神