keeping the history of table in java

后端 未结 11 1714
误落风尘
误落风尘 2020-12-10 09:54

I need the sample program in Java for keeping the history of table if user inserted, updated and deleted on that table. Can anybody help in this?

Thanks in advance

11条回答
  •  时光取名叫无心
    2020-12-10 10:44

    How is this a Java question?

    This should be moved in Database section.

    You need to create a history table. Then create database triggers on the original table for "create or replace trigger before insert or update or delete on table for each row ...."

提交回复
热议问题