#帮助#如何让博客的ID从1开始
虽然没有必要,但是就是很纠结怎么办?
sqlite管理软件里执行如下sql语句,文章和评论都会从1开始:
DELETE FROM Log;
DELETE FROM sqlite_sequence WHERE name = 'Log';
DELETE FROM Pl;
DELETE FROM sqlite_sequence WHERE name = 'Pl'
如果你阅读过源码会发现index.php里有类似代码彩蛋,不过注释掉了,那么接下来你应该懂了吧。
默认分类 2020-02-28 14:28:20 通过 网页 浏览(4576)
共有0条评论!