Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: gram77Posted on 2009-10-04 at 09:49:37ID: 25489720
I want to change the above loop into FORALL..LOOP structure and add bulk insert feature:
Please help?
PROCEDURE my_proc (p_paramA IN sys_refcursor,
p_paramB OUT NUMBER
)
IS
--The following statement gives a PLS-00497 error.
FETCH p_paramA BULK COLLECT INTO v_paramA;
EXIT WHEN p_paramA%NOTFOUND;
FORALL i IN v_paramA LOOP
INSERT INTO inst_activity
VALUES ( v_paramA(i).col1,
v_paramA(i).col2,
TRUNC (SYSDATE));
END LOOP;
END my_proc;