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 -> Re: How to compare a datetime field to a Date

Re: How to compare a datetime field to a Date

From: Tony Andrews <andrewst_at_onetel.com>
Date: 19 Oct 2004 07:55:56 -0700
Message-ID: <1098197756.159746.311950@z14g2000cwz.googlegroups.com>


md9_at_ibest.com.br wrote:
> HI I would like to do something like this
>
> Select * from table where date(datettiemfield)= TO_DATE('10/18/2004')
>
> I want the hour to be ignored in the comparison.

Select * from table where TRUNC(datettiemfield)= TO_DATE('10/18/2004','MM/DD/YYYY') Received on Tue Oct 19 2004 - 09:55:56 CDT

Original text of this message

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