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

Home -> Community -> Usenet -> c.d.o.misc -> Re: to_date function

Re: to_date function

From: Volker Neurath <neanderix_at_gmx.de>
Date: Tue, 18 Dec 2001 23:12:58 +0100
Message-ID: <9voend$gfjkp$31@ID-29596.news.dfncis.de>


Jim Kennedy wrote:

>Yes, you can truncate the created_date, but that will force a full table
>scan just to get the date component as of midnight.

And what about:

SELECT *
FROM table
WHERE
to_date(to_char(date_field,'dd/mm/yyyy'),'dd/mm/yyyy')=to_date('15/12/2001','dd/mm/yyyy')

Volker Received on Tue Dec 18 2001 - 16:12:58 CST

Original text of this message

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