Sqlite清空表数据

2022-09-23 17:07:21 浏览数 (1)

命令如下

代码语言:javascript复制
delete from TableName;//清空数据
update sqlite_sequence SET seq = 0 where name ='TableName';//自增长ID为0

0 人点赞