execSQL語句不執(zhí)行
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)");//執(zhí)行sql語句 }
創(chuàng)建數(shù)據(jù)庫成功,但是數(shù)據(jù)庫中沒有表
2019-06-04
有表,只是你的表中沒有數(shù)據(jù)(data)