MYSQL: Delete all rows older than 30 days but keep newest 3 rows

前端 未结 0 1709
醉话见心
醉话见心 2021-02-03 15:47

I want to delete all rows older than 30 days, but keep the newest 3 rows.

All rows newer than 30 days should stay.

Purpose: I have a db with messages. All messages

相关标签:
回答
  • 消灭零回复
提交回复
热议问题