方糖724
2018-08-25 11:23
public void onCreate(SQLiteDatabase db) {
Log.i("tag","-----onCreate-----");
db.execSQL("CREATE TABLE if not exists thing(id Integer primary key,name Text,price Integer)");//执行sql语句
}


创建数据库成功,但是数据库中没有表

有表,只是你的表中没有数据(data)
Android基础-初识SQLite
22269 学习 · 41 问题
相似问题