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 -> Problems in DATE equality

Problems in DATE equality

From: Roberto Finelli <robertof_at_sofiter.atlink.it>
Date: 1997/05/19
Message-ID: <3380055B.6582@sofiter.atlink.it>#1/1

Something went wrong in last times, because I can't do something very usual, like DATE equalitity tests.

I have got a DATE field in a table : when I try to select with an EQUAL condition in the WHERE on this field, like this : SELECT * from TABLE where DATE_FIELD = TO_DATE('16051997','DDMMYYYY') I don't get any records !

Note that the SELECT returns the right answer if I put it like this : SELECT * from TABLE where DATE_FIELD BETWEEN   TO_DATE('15051997','DDMMYYYY') AND TO_DATE('17051997','DDMMYYYY') so it seems that the problem is with equality only.

I have tried to select with the time too, like this : SELECT * from TABLE where DATE_FIELD =
TO_DATE('16051997045715','DDMMYYYYHHMISS) but also this didn't succeed.

Could someone give an explanation ?
Thanks Received on Mon May 19 1997 - 00:00:00 CDT

Original text of this message

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