--SCN与时间的互相转换
select dbms_flashback.get_system_change_number() scn1, timestamp_to_scn(sysdate) scn2 from dual;
select to_char(scn_to_timestamp(1468702), 'yyyy-mm-dd hh24:mi:ss') scndate from dual; --将SCN转换成时间戳
select to_timestamp(sysdate) from dual;
select timestamp_to_scn(to_timestamp(sysdate-1)) bscn from dual; --将时间转换成SCN
select timestamp_to_scn(scn_to_timestamp(1468702)) dt from dual; --将时间转换成SCN
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22878696/viewspace-1802927/
,如需转载,请注明出处,否则将追究法律责任。