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: sysdate & date columns

Re: sysdate & date columns

From: Mohamed Buhari <mbuhari_at_assigncorp.com>
Date: 19 Jan 2000 20:55:43 EST
Message-ID: <38866A8F.B0A0C25F@assigncorp.com>


Try This....

alter session set NLS_DATE_FORMAT='MM-DD-YYYY'; --no time info select * from table1 where date1 = sysdate;

This must work!

Larry Pettit wrote:

> This doesn't work.
>
> select * from table1 where date1 = sysdate
> Is there a way to compare a date column with sysdate other than
> converting both using to_char()?
>
> I think the time part of the date is causing this not to work, any
> suggestions?
>
> Thanks
Received on Wed Jan 19 2000 - 19:55:43 CST

Original text of this message

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