How to store historical records in a history table in SQL Server

后端 未结 9 997
失恋的感觉
失恋的感觉 2020-11-28 21:24

I have 2 tables, Table-A and Table-A-History.

  • Table-A contains current data rows.
  • Table-A-History c
9条回答
  •  没有蜡笔的小新
    2020-11-28 21:44

    Option 1 is OK. But you have method 4 too :)

    1. Insert new record to your table,

    2. Move old record to archive table on regular base using mysql scheduler. You can schedule data archivation at the time of minimal load, for example at night hours.

提交回复
热议问题