Home » Developer & Programmer » Forms » wrong no of values in INTO the list of a Fetch Statment
wrong no of values in INTO the list of a Fetch Statment [message #173133] Fri, 19 May 2006 09:33 Go to next message
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;
Re: wrong no of values in INTO the list of a Fetch Statment [message #173152 is a reply to message #173133] Fri, 19 May 2006 12:46 Go to previous messageGo to next message
gacki
Messages: 33
Registered: May 2006
Location: Dueren, NRW, Germany
Member
You try to fetch ppno,subpp,color,c_ref,pack,pcs,kgs (7 items) into mcname (1 item). That doesn't work. Your cursor should read as follows:

CURSOR post_ppfs
IS
select color from pp_dpkd
WHERE PP_DPKD.PPNO=:PPMAIN.MPPNO;
Re: wrong no of values in INTO the list of a Fetch Statment [message #173202 is a reply to message #173152] Sat, 20 May 2006 04:15 Go to previous message
kamran.it
Messages: 265
Registered: September 2005
Location: Karachi
Senior Member
Thank you so much.

some time littlebit make bigone.
Previous Topic: data not inserting into cursor
Next Topic: Push Button Image
Goto Forum:
  


Current Time: Fri Sep 20 09:52:44 CDT 2024