Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Can I do this with the dynamic SQL?
I found an alternative for my last post, however, there was still a
problem. I wrote a package with a procedure as
Procedure abc( p_sa IN VARCHAR2) IS
v_name tbl_name; -- is a table type variable decalred in package spec.
BEGIN
sqlStmt := 'select name from fl_management f, TABLE(f.mgmts_nt) f2
where f2.sa= :x';
If ... Then EXECUTE IMMEDIATE sqlStmt BULK COLLECT INTO v_name USING const1; ELSIF .. THEN EXECUTE IMMEDIATE sqlStmt BULK COLLECT INTO v_name USING const2; END IF;
C Chang Received on Fri Jul 09 2004 - 09:40:28 CDT