时间:2021-07-01 10:21:17 帮助过:8人阅读
1、如果想把某个自增列的序号归零,只需要修改 sqlite_sequence表就可以了。
delete from TableName; //清空数据
update sqlite_sequence SET seq =0 where name =‘TableName‘;//自增长ID为0
2、要想将所有表的自增列都归零,直接清空sqlite_sequence表就可以了:
DELETE FROM sqlite_sequence;
【sql】sqlite自增id清零
标签:直接 清零 table name bsp delete enc 数据 tab