首页 > 技术文章 > Oracle SCN与时间的相互转换

lucifa 2018-12-19 16:45 原文

1.SCN转换成时间

select scn_to_timestamp(current_scn) from v$database;

2.时间转换成SCN

select timestamp_to_scn(sysdate) from v$database;

 

推荐阅读