Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Select Statement
Hi Steve,
My query had the SELECT COUNT(*) from tbl_name where condition and
rownum=1.
which went through all rows.
Upon looking at your one and changing it to SELECT 1 from tbl_name where condition and rownum=1 is fetches with few rows in explain plan.
COUNT(*) was the culprint here.. I was not aware of this. Thank you Received on Fri Apr 21 2006 - 10:40:11 CDT