Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

retrieve optimize: select * from tb where mdate > sysdate

390035Jun 5 2003 — edited Jun 6 2003
hi,
i wrote a simple statement :
select * from tb where mdate > sysdate;

it takes long time to return resultset.
when i use to_char() function,

select * from tb where to_char(mdate,'yyyy-mm-dd') >
to_char(sysdate,'yyyy-mm-dd');
it runs faster.
who can tell me why?
thanks.



Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2003
Added on Jun 5 2003
4 comments
78 views