How does mysql design tables for daily data records?

problem description

there is a list that is incremented from time to time. Every day, the data in the list should be queried on a website to check whether the data appears on a website and record the results every day. At least the query results in the last 60 days need to be retained. How should the table be designed?

the environmental background of the problems and what methods you have tried

I have tried to build a table every day. Although the demand can be met, it doesn"t feel right. Is there a better solution?

Dec.28,2021

have you considered


this requirement that any table has a field that records the date, and no subtable

is needed at all?
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eabf8d-20a0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eabf8d-20a0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?