标签:直接 清零 table name bsp delete enc 数据 tab
1、如果想把某个自增列的序号归零,只需要修改 sqlite_sequence表就可以了。
delete from TableName; //清空数据
update sqlite_sequence SET seq =0 where name =‘TableName‘;//自增长ID为0
2、要想将所有表的自增列都归零,直接清空sqlite_sequence表就可以了:
DELETE FROM sqlite_sequence;
标签:直接 清零 table name bsp delete enc 数据 tab
原文地址:https://www.cnblogs.com/Mars-0603/p/14632878.html