手一抖数据就没了,/(ㄒoㄒ)/~~
查询Stable_name 2018-05-28 10:10:00 时刻的数据,删除之前的时刻
SELECT * FROM Stable_name AS OF timestamp to_timestamp('2018-05-28 10:10:00','yyyy-mm-dd hh24:mi:ss');
筛选出被删除的数据
SELECT * FROM (SELECT * FROM Stable_name AS OF timestamp to_timestamp('2018-05-28 10:10:00','yyyy-mm-dd hh24:mi:ss'))
WHERE 筛选条件;
重新插入数据
insert into Stable_name (SELECT * FROM (SELECT * FROM Stable_name AS OF timestamp to_timestamp('2018-05-28 10:10:00','yyyy-mm-dd hh24:mi:ss'))
WHERE 筛选条件);
完毕。