Hmmm, first of all, the procedures in your package header must be the ones you define in the body, otherwise they're not visible.
>DECLARE
> yr NUMBER;
>BEGIN
> FOR i IN 1..8
> yr := 2005
> LOOP
> INSERT INTO wf_active_window VALUES (yr);
> yr + 1
> END LOOP;
>END wf_load_active;
Couple of small typos:
DECLARE
yr NUMBER := 2005;
BEGIN
FOR i IN 1..8 LOOP
INSERT INTO wf_active_window VALUES (yr);
yr := yr + 1;
END LOOP;
END wf_load_active;
also, you could simply do:
FOR i IN 2005..2013 LOOP
INSERT INTO wf_active_window VALUES (yr);
END LOOP;
Stefan
Main Topics
Browse All Topics





by: uTabPosted on 2005-04-01 at 10:55:21ID: 13683330
Let me change this up a bit. I do not need help with the pkg. I need help with the loop.
DECLARE
yr NUMBER;
BEGIN
FOR i IN 1..8
yr := 2005
LOOP
INSERT INTO wf_active_window VALUES (yr);
yr + 1
END LOOP;
END wf_load_active;