wrong no of values in INTO the list of a Fetch Statment [message #173133] |
Fri, 19 May 2006 09:33 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kamran.it
Messages: 265 Registered: September 2005 Location: Karachi
|
Senior Member |
|
|
Cursor is showing error
any body can help me???
"wrong no of values in INTO the list of a Fetch Statment"
declare
CURSOR post_ppfs
IS
select ppno,subpp,color,c_ref,pack,pcs,kgs from pp_dpkd
WHERE PP_DPKD.PPNO=:PPMAIN.MPPNO;
MCNAME pp_dpkd.COLOR%TYPE;
BEGIN
GO_BLOCK('SUB_MAINPP1');
OPEN POST_PPFS;
LOOP
FETCH POST_PPFS
INTO MCNAME;
EXIT WHEN POST_PPFS%NOTFOUND;
GO_ITEM('SUB_MAINPP1.C_NAME');
CREATE_RECORD;
:SUB_MAINPP1.C_NAME := MCNAME;
END LOOP;
CLOSE POST_PPFS;
end;
|
|
|
|
|