码迷,mamicode.com
首页 > 移动开发 > 详细

Android SQLite

时间:2016-07-09 17:56:58      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:

SQLiteOPenHelper

构造器之一

public SQLiteOpenHelper (Context context, String name, SQLiteDatabase.CursorFactory factory, int version)

  Create a helper object to create, open, and/or manage a database. This method always returns very quickly. The database is not actually created or opened until one of getWritableDatabse() or getReadableDatabse() is called.

某些方法

public abstract void onCreate (SQLiteDatabase db)

Called when the database is created for the first time. This is where the creation of tables and the initial population of the tables should happen.

public abstract void onUpgrade (SQLiteDatabase db, int oldVersion, int newVersion)

  

public SQLiteDatabase getWritableDatabase ()

  

Android SQLite

标签:

原文地址:http://www.cnblogs.com/mmyz-sysu-panjn/p/Android-SQLite.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!