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 -> Date fields before Year 2000.

Date fields before Year 2000.

From: <sumanp_at_my-deja.com>
Date: 2000/03/16
Message-ID: <8arjrt$7nn$1@nnrp1.deja.com>#1/1

Have you noticed that now (this year),
the following statement does not work correctly.

select * from table_name
where date_column = '01-Dec-99';

The above statement does not return
any rows, even though data is present in the table. I can swear that the above
statement returned rows last year.

But the following statement returns rows.

select * from table_name
where date_column = to_date('01-Dec-1999', 'dd-mon-yyyy');

Wierd, isn't it?
I found the same behaviour in Oracle 7.3 and Oracle 8.

Does anybody know why this is happening
and if we can resolve it in some way.

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Mar 16 2000 - 00:00:00 CST

Original text of this message

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