by 정진우 TIMESTAMP 시간차구하기 TIMESTAMP 시간차 초단위 [2014.01.13 18:12:37]
SELECT systimestamp - tm AS interval , EXTRACT(DAY FROM systimestamp - tm) *24*60*60 + EXTRACT(HOUR FROM systimestamp - tm) *60*60 + EXTRACT(MINUTE FROM systimestamp - tm) *60 + EXTRACT(SECOND FROM systimestamp - tm) AS second FROM (SELECT TO_TIMESTAMP('14/01/13 17:40:33.751000000', 'yy/mm/dd hh24:mi:ss.ff') tm FROM dual) ;