DATES

From: Linda Harte <Linda.Harte_at_peregrine.ie>
Date: Wed, 1 Jul 1998 11:09:33 +0100
Message-ID: <359a0a4b.0_at_per-nts1>



We have several client server applications connecting to Oracle 7.3 and have just discovered some problems with dates.

[Quoted] [Quoted] One application inserts sysdate into a table insert into table1 (the_date) values (sysdate)

Another apllication selects data from this table and does some further processing and this is where the problem arises
select * from table1 where the_date =
[Quoted] to_char('01-07-1998','dd-mm-yyyy')

This returns no rows although if we do a select the_date from table1 we see that there is one record with date 01-JUL-97.

It appears that SYSDATE inserts the current time into the column as well and hence the problem when trying to select data.

Any ideas on how to overcome this or how to deal with dates in oracle

Thanks

Linda Received on Wed Jul 01 1998 - 12:09:33 CEST

Original text of this message