时间点转成scn
SQL> select timestamp_to_scn('31-OCT-18 01.29.58.000000000 PM') from dual; TIMESTAMP_TO_SCN('31-OCT-1801.29.58.000000000PM') |
scn转成时间点
SQL> select to_char(scn_to_timestamp(1123574))from dual; TO_CHAR(SCN_TO_TIMESTAMP(1123574)) |
显示的时间格式好看点
SQL> select to_char(scn_to_timestamp(1123574),'YYYY-MM-DD HH24:MI:SS') from dual; TO_CHAR(SCN_TO_TIME |