??????? delete from [tablename];
??????? //1. 将表名为tablename的自增量置0
??????? update sqlite_sequence set seq = 0 where name = 'tablename'
??????? //2. 将表名为tablename的记录删除
??????? delete from sqlite_sequence where name = 'tablename'
??????? //3. 将sqlite_sequence表清空数据
??????? delete from sqlite_sequence
@Query("DELETE FROM tablename") void deleteAll(); @Query("UPDATE sqlite_sequence SET seq = 0 WHERE name = 'tablename'") void resetPrimaryKey(); @Query("DELETE FROM sqlite_sequence WHERE name = 'tablename'") void recordDeletion(); @Query("DELETE FROM sqlite_sequence ") void wipeData();