在 SQLite 中,并没有 TRUNCATE TABLE 命令,但可以使用 SQLite 的 DELETE 命令从已有的表中删除全部的数据。
DELETE FROM sqlite_sequence WHERE name = 'table_name';
Mysql清空表数据(包括自增id)
truncate table table_name;
在 SQLite 中,并没有 TRUNCATE TABLE 命令,但可以使用 SQLite 的 DELETE 命令从已有的表中删除全部的数据。
DELETE FROM sqlite_sequence WHERE name = 'table_name';
Mysql清空表数据(包括自增id)
truncate table table_name;