JAVA日报

app开发(db2)

package db;

import android.content.Context;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase;

public class Sqlite2 extends SQLiteOpenHelper{
public Sqlite2(Context context){
super(context,"Text2.db",null,1);
}
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL("create table tex2(num varchar(20),name varchar(20),cl varchar(20),phone varchar(20))");
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

}
}
posted @ 2021-09-21 19:23  我的未来姓栗山  阅读(17)  评论(0编辑  收藏  举报