數據庫恢復到指定時間的表記錄 Java代碼 ** 閃回 Java代碼 span style=font-size: 1em; line-height: 1.5;查詢某一時間點的數據 span style=font-size: 1em; line-height: 1.5;select * from gs_grid_info as of timestamp to_timestamp(2013-05-09 9:00:47,
數據庫恢復到指定時間的表記錄
Java代碼
** 閃回
Java代碼
查詢某一時間點的數據
select * from gs_grid_info as of timestamp to_timestamp('2013-05-09 9:00:47', 'yyyy-mm-dd hh24:mi:ss');
Java代碼
Java代碼
允許數據表行移動
alter table gs_grid_relation enable row movement;
恢復到指定時間的表記錄
flashback table gs_grid_relation to timestamp to_timestamp('2013-05-09 10:00:00','yyyy-mm-dd hh24:mi:ss');
Java代碼
** 差異
select * from B minus select * from A;
比較表結構相同的兩表之間的差異用minus。
select * from gs_grid_info minus
select * from gs_grid_info as of timestamp to_timestamp('2013-05-09 9:00:47', 'yyyy-mm-dd hh24:mi:ss');
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com