Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: to_date function
> > Yes, you can truncate the created_date, but that will force a full table
> > scan just to get the date component as of midnight.
>
> Is that true? I do not believe that. Where can I read about such.
>
> select * from tableA where trunc(created_date) = to_date('15/12/01',
> 'dd/mm/yy');
Yes it's true. How could Oracle use index on created_dt if your condition is trunc(created_date)?
Read something about function-based indexes. I think it's explained there. Received on Wed Dec 19 2001 - 05:45:40 CST