清空数据表,不能轻易用drop table,会空指针异常,而崩溃
不保留记录:
delete from 表名;
update sqlite_sequence set seq=0 where name='表名';
保留记录:
delete from 表名;
清空数据表,不能轻易用drop table,会空指针异常,而崩溃
不保留记录:
delete from 表名;
update sqlite_sequence set seq=0 where name='表名';
保留记录:
delete from 表名;