Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> PL/SQL nested select problem.
Hello All!
Does anybody know why this cursor dont work:
cursor q(some_param integer) is select A.* from (select * from B where B.ID<some_param) where A.ID isnot NULL;
When I use nested select's is dynamic SQL - no problems.
select b.* from B where B.ID<some_param and B.ID is not null - this improperly use indexes and very slow in huge tables.
Please, email me.
Regards , Wlad.M Received on Thu Jun 11 1998 - 11:12:06 CDT