Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: sysdate and date columns

Re: sysdate and date columns

From: Marc <E.Mail_at_address.com>
Date: Thu, 20 Jan 2000 07:42:35 +0100
Message-ID: <866aub$td$1@vkhdsu24.hda.hydro.com>


That will prevent the usage of an index on column 'DATE1'. It may be better to write:

select *
from <table>
where date1 >= trunc(sysdate)
and date1 < trunc(sysdate + 1)

Marc

Doug O'Leary wrote in message ...
>Hi;
>
>From what I understand,
>
>select *
>from <table>
>where trunc(date1) = trunc(sysdate);
>
>should work.
>
>Doug
>--
>==============
>Douglas K. O'Leary
>Senior System Admin
>dkoleary_at_mediaone.net
>==============
Received on Thu Jan 20 2000 - 00:42:35 CST

Original text of this message

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