创建一个类继承 SQLiteOpenHelper
构造函数里写
super(context,"person.db",null,1);
onCreate(SQLiteDatabase db){
db.execSQL("create table person (id integer primary key autoincrement,name varchar(20),number varchar(20)");
}
创建一个类继承 SQLiteOpenHelper
构造函数里写
super(context,"person.db",null,1);
onCreate(SQLiteDatabase db){
db.execSQL("create table person (id integer primary key autoincrement,name varchar(20),number varchar(20)");
}