If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > datediff equivalent in oracle?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-03, 08:50
praxedis praxedis is offline
Registered User
 
Join Date: Mar 2003
Posts: 1
datediff equivalent in oracle?

Anybody know what it is?

Maybe an example too?

Any help appreciated.
Reply With Quote
  #2 (permalink)  
Old 03-03-03, 09:24
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: datediff equivalent in oracle?

I don't know what datediff does exactly, but you can easily get the difference between two dates in Oracle as a number of days:

SELECT date2 - date1 AS diff FROM table;
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On