create table t1 (id int primary key,snapme mestamp,snapcsn int8,remark varchar);
2.
插入数据
insert into t1 select 1,now(),int8in(xidout(next_csn)),'t1' from gs_get_next_xid_csn();
insert into t1 select 2,now(),int8in(xidout(next_csn)),'t2' from gs_get_next_xid_csn();
insert into t1 select 3,now(),int8in(xidout(next_csn)),'t3' from gs_get_next_xid_csn();
3.
查询数据
select * from t1;
4.
删除数据
delete from t1;
5.
使用
mestamp
恢复数据
select * from t1 mecapsule mestamp to_mestamp('2023-06-08 17:48:49','YYYY-MM-DD
HH24:MI:SS.FF');
6.
测试结果
结果显示:数据恢复不支持堆表。
7.
重新建表
create table t1 (id int primary key,snapme mestamp,snapcsn int8,remark varchar) with
(STORAGE_TYPE=USTORE);
8.
重新执行
2-6
以上步骤
方式
1
:通过
mestamp
查看删除数据
select * from t1 mecapsule mestamp to_mestamp('2023-06-08 17:54:42','YYYY-MM-DD
HH24:MI:SS.FF');
评论