标签:contex 开发 sqlite ecs extends text ase extend EDA
从零开始的体温app开发(db)
package db;
import android.content.Context;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase;
public class Sqlite extends SQLiteOpenHelper{
public Sqlite(Context context){
super(context,"Text.db",null,1);
}
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL("create table text(name varchar(20),num varchar(20),cl varchar(20) ,date varchar(20),time varchar(20),area varchar(20),tem varchar(20),qw varchar(40))");
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
}
}
标签:contex 开发 sqlite ecs extends text ase extend EDA
原文地址:https://www.cnblogs.com/mumulailai/p/14909447.html