delete 数据恢复方法

删除数据的表

--只能查出delete的数据。

SELECT *
FROM AP_BASE_INFO_T AS OF TIMESTAMP TO_TIMESTAMP('2011-04-25 08:05:00', 'YYYY-MM-DD HH24:MI:SS')

 

根据查询出来的需要恢复数据在重新插入
INSERT INTO AP_BASE_INFO_T
(SELECT *
FROM AP_BASE_INFO_T AS OF TIMESTAMP TO_TIMESTAMP('2011-04-25 08:05:00', 'YYYY-MM-DD HH24:MI:SS'));

你可能感兴趣的:(delete)