Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 sql 数据库,它包含 50.000 条记录,但我只想要 100 条记录。手动删除它非常困难,因此没有使用 SQl 命令删除它的解决方案(使用 Firfox 的 SQlite Manager)
谢谢
最后我找到了我的解决方案,它只是简单的条件代码:
DELETE FROM `TABLE_NAME` WHERE `id` > '100'
运行此代码后,将删除所有 id > 100 的行。您可以根据需要更改条件,例如更改表名、条件名称(在我的情况下为“id”)和条件“<”或“>”...
我希望它有帮助..!