DBOpenHelper用法
来源:互联网 发布:初中生学习编程 编辑:程序博客网 时间:2024/06/06 15:34
DBOpenHelper用法
import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;public class DBOpenHelper extends SQLiteOpenHelper{public static final String DB_NAME = "IntelinkSQL.db";public static final int DB_VERSION = 1;public DBOpenHelper(Context context) {super(context, DB_NAME, null, DB_VERSION);}@Overridepublic void onCreate(SQLiteDatabase database) {database.execSQL("CREATE TABLE IF NOT EXISTS TAB_ADDRESS_INFO(_id integer primary key autoincrement, address VARCHAR2(100));");}@Overridepublic void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) {}}
0 0
- DBOpenHelper用法
- DBOpenHelper
- Sqlite中DbOpenHelper的onCreate方法不能被调用
- DBOpenHelper.java,用于将复制到raw文件夹下的数据库文件读取并保存到databases文件夹中。
- 用法
- ,, 用法
- 用法
- 用法
- #用法
- ??用法
- !!用法
- CustDialog用法 SimpleAdapter 用法
- hibernate_Restrictions用法 hibernate_Restrictions用法
- extern用法+assert用法
- getParameterValues用法
- rpm用法
- Log4j用法
- NameSpace用法
- linux系统部署项目常用命令
- Android拨号程序的编写
- linux系统部署项目常用命令
- Mysql 如何设置字段自动获取当前时间
- $(window).height()和$(document).height()返回值尽然出现了一样的情况
- DBOpenHelper用法
- 如何将一张表的数据复制到另一张表(sql yog)
- 配置 mysql及mariadb的几条准则
- UML 表示类的内部类的方式
- RefreshRecyclerView+PullToRefresh创建下拉上拉
- SourceTree 忽略文件设置
- 关于ADC说明
- Iplimage设置感兴趣区域(ROI)
- Debian设置IP地址、网关、DNS