Keep table data "versions"
Keep table data "versions"
(OP)
Hello!
I have a kind of version problem where a table gets updated and some users still requires the old data from the table. What is the best approach to this problem?
I have a kind of version problem where a table gets updated and some users still requires the old data from the table. What is the best approach to this problem?
RE: Keep table data "versions"
insert into history (a,b,c...) values (old.a,old.b,old.c ...)
You can insert the whole record or just those values where old one <> new one. Make a foreign key in the History table linked to the primary key of the updating one.
HTH