delete from tableName; //清空数据
update sqlite_sequence SET seq=0 where name='tableName';//自增长ID为0
Unsafe query: 'Delete' statement without 'where' clears all data in the table
遇到有删除约束问题的解决办法
可以选择一个能囊括所有记录的WHERE条件即可,一般有id的就 where id>0
delete from tableName; //清空数据
update sqlite_sequence SET seq=0 where name='tableName';//自增长ID为0
Unsafe query: 'Delete' statement without 'where' clears all data in the table
遇到有删除约束问题的解决办法
可以选择一个能囊括所有记录的WHERE条件即可,一般有id的就 where id>0