Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> SQL help pls
Can anybody tell me why the following query is taking time to execute
when I use in side the loop in stored procedure
select count(*) into abcfrom r_output where trim(both from l_name) = cRec.l_name and trim( both from db) = cRec.db and trim(both from f_id) = cRec.f_id and trim(both from c_id) = cRec.c_id and trim(both from a_id) = cRec.a_id and trim(both from g_id) = cRec.g_id and trim(both from e_date) = cRec.e_date andtrim(both from t_date) = cRec.t_date and f_key = inFKey and s_f_key = inSFKey;
all variables are of type varchar2 except f_key, s_f_key which are of integer type
Thanks. Received on Tue Sep 12 2006 - 07:53:34 CDT
![]() |
![]() |