CodePudding user response:
After a long time, just take out the data backup and get into the historical data, not all on the table in theCodePudding user response:
After a long time the history data in another table alone? How to automatically set the processCodePudding user response:
Set a fixed date every month running, the operation process is the same month last year of history data backup to the history table or in the library, year interval can also be extended according to the actual business requirements,CodePudding user response:
Make a partition, a month a partition,In addition, as the upstairs said, also must history table,
More than 3 months of data should be put the history table,
In SQL job each month 1 time transfer data to the history table,
CodePudding user response: