Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Newbie Q: Calculating Difference Between 2 Dates
I'm looking for the PL/SQL to calculate the difference between 2 dates,
specifically in # of seconds although I need it in all forms eventually (#
days, # hours, etc.).
The equivalent function in Transact-SQL (Sybase/MS SQL) was datediff (date part, date1 , date2). All I can find in PL/SQL is MONTHS_BETWEEN which isn't very useful. Received on Fri Jul 31 1998 - 12:44:40 CDT
![]() |
![]() |