sqlite刪除一條記錄 sqlite3怎么清除表中的數(shù)據(jù)?
sqlite3怎么清除表中的數(shù)據(jù)?刪除表示的示例:SQLiteDatabase.execSQL(“drop table customers”)清除表中的所有記錄:SQLiteDatabase.exec
sqlite3怎么清除表中的數(shù)據(jù)?
刪除表示的示例:SQLiteDatabase.execSQL(“drop table customers”)清除表中的所有記錄:SQLiteDatabase.execSQL在(“delete from customers”)示例中,customers是您的表名
test1.db是整個數(shù)據(jù)庫文件,而不是表。它可以包含多個導(dǎo)入操作系統(tǒng)的表操作系統(tǒng)取消鏈接(”測試1。DB”)刪除test1。用上面的DB文件代碼刪除一個人的單表:繼續(xù)執(zhí)行(“drop table people”)