SELECT A + B AS dat
FROM(
SELECT
TO_DATE('1970-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS') AS A
, (1179531250785 / 1000) / 86400 AS B
FROM dual
)
select TO_DATE('1970-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS') + (1179531250785/1000) / 3600 a from dual
by 꼬마갱이 2008-01-16
'ORACLE·sql' 카테고리의 다른 글
LPAD, RPAD (0) | 2009.12.11 |
---|---|
sysdate (0) | 2009.12.11 |
Random (0) | 2009.12.11 |
long length를 to_lob으로 해결하기 (0) | 2009.09.16 |
DBMS_LOB (0) | 2009.09.16 |