SQLite: How to limit the number of rows based on the timestamp?

人走茶凉 提交于 2019-12-01 00:21:31

This type of trigger should work fine in conjunction with the other one. The problem appears to be that the SQL is unnecessarily quoting the _id field. It is selecting the literal string "_id" for every row and comparing that to the same literal string.

Removing the quotes around '_id' (both in the DELETE and in the sub-SELECT) should fix the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!