Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Use of to_date function

Use of to_date function

From: <stamp.dean_at_corona.navy.mil>
Date: 1997/11/18
Message-ID: <879869101.32112@dejanews.com>#1/1

Does anybody know if you can use the to_date function to select on both a date and time without typing in the format? For example, I want to do:

select datetime from a.view where datetime = to_date('05-AUG-97 11:13:42')

without having to type in the extra ,'DD-MON-YY HH:MI:SS'). I found out you don't have to type in the format portion when you just enter a date. For example, the following works:

select datetime from a.view where datetime = to_date('05-AUG-97')

but, of course, in this case you only get records occurring at time 00:00:00. Thanks for any help or if you can direct me where to go to get further information.

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet
Received on Tue Nov 18 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US