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: <md9_at_ibest.com.br>
Date: 19 Oct 2004 11:31:35 -0700
Message-ID: <75ba751c.0410191031.1f6a9128@posting.google.com>


Hi Tony,

Thank you for your answer.
I already solved this way
where to_date(dh_entrada) = to_date('18/10/2004')

Regards,
Marcello Dias
"Tony Andrews" <andrewst_at_onetel.com> wrote in message news:<1098197756.159746.311950_at_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 - 13:31:35 CDT

Original text of this message

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