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