Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_sql
Eleanor Shavell wrote:
> BUT, I don't know the name of the procedure , so I want to construct the
> block
> to be something like:
> 'BEGIN
> :myproc (:ls_prop,:ls_res);
> END;';
>
> I can't get this to work.
> Any ideas?
>
> Thanks a lot,
> Eleanor Shavell
> 'BEGIN
Just construct the string with the procedure name. Do not use
a bind variable.
my_proc VARCHAR(20);
parse_str VARCHAR(100);
BEGIN
my_proc := 'do_test';
parrse_str := 'BEGIN '||
my_proc||'(:ls_prop, :ls_res); '|| 'END;';
ETC....
END;
Regards
-- ************************* Gary Smith CERN, Geneva, Switzerland Email: Gary.Smith_at_cern.ch Tel: +41 22 7678944 *************************Received on Thu Dec 04 1997 - 00:00:00 CST
![]() |
![]() |