1.查询表数据如下:
select T.*,SYSDATE from Z_TEST t
DN SYSDATE
1 ABCDEFGHIG 2021-12-6 16:19:06
2、删除数据
DELETE FROM Z_TEST;
3、恢复删除的数据
ALTER TABLE z_Test ENABLE ROW Movement;
Flashback TABLE z_Test TO TIMESTAMP To_Timestamp('2021-12-06/16:19:06', 'yyyy-mm-dd hh24:mi:ss');
ALTER TABLE z_Test DISABLE ROW Movement;
SELECT COUNT(0)
FROM Sm_Affix AS OF TIMESTAMP To_Timestamp('2021-12-06/16:30:00', 'yyyy-mm-dd hh24:mi:ss') t
WHERE EXISTS (SELECT * FROM Sm_Affix_0817002 a WHERE a.Row_Id = t.Row_Id)