Limit an sqlite Table's Maximum Number of Rows

前端 未结 3 1470
粉色の甜心
粉色の甜心 2020-11-29 08:01

I am looking to implement a sort of \'activity log\' table where actions a user does are stored in a sqlite table and then presented to the user so that they can see the lat

3条回答
  •  感动是毒
    2020-11-29 08:45

    You could create a trigger that fires on INSERT, but a better way to approach this, might be to simply have a scheduled job that runs periodically (say once a week) and deletes records from the table.

提交回复
热议问题