Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: why administrator refuse to give permission on PLUSTRACE
Hasta wrote:
> In article <1194099250.480387_at_bubbleator.drizzle.com>,
> damorgan_at_psoug.org says...
>>> --- Raoul >> You failed. <g> >> >>
>> The only part of the spec it does not meet is speed. >> It takes too long to complete.
You are waffling. Marc posted the solution which quite simply is:
"this could be done with one statement"
The cursor loop is obsolete as of 9i but in this case the correct solution could have been written in version 7.
CREATE OR REPLACE PROCEDURE test IS
BEGIN
INSERT INTO child
SELECT part_num*10, part_name
FROM parent;
COMMIT;
END test;
/
And perhaps with the APPEND hint depending on other factors.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Sat Nov 03 2007 - 11:34:27 CDT
![]() |
![]() |