difference sysdate-hiredate = yy-mm-dd.hh:mm:ss [message #53311] |
Thu, 12 September 2002 00:09 |
saif ali sabri
Messages: 20 Registered: September 2002
|
Junior Member |
|
|
SQL> run
1 select sysdate-hiredate, current_timestamp-hiredate from emp where deptno = 10
SYSDATE-HIREDATECURRENT_TIMESTAMP-HIREDATE
-----------------------------------------
701566.576 701566 13:49:41
701727.576 701727 13:49:41
701499.576 701499 13:49:41
the result of sysdate-hiredate = No.of days.No.of seconds
the result of current_timestamp-hiredate = No.of days hh:mi:ss. just as answer time format hh:mi:ss. I want that answer of No.of days is must be yy-mm-dd as it is hh:mi:ss, not in Number of days,
I want that result must be come in yy-mm-dd.hh:mi:ss
|
|
|
|
|
|