Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> pl/sql problem

pl/sql problem

From: Min Wang <mwang_at_colorbank.com>
Date: Wed, 26 Aug 1998 18:23:51 -0400
Message-ID: <35E48AF7.2140C899@colorbank.com>


Hi:

I have a pl/sql problem.

When I did:

CREATE OR REPLACE ... IS

CURSOR 1_cursor IS

	select ...
	from table_1
	where client in ('A','B','C')
	  and ..

...

BEGIN         for c1 in 1_cursor loop

....
        

        end loop;
END; Everything works fine. But when I have to do like:

CREATE OR REPLACE .. IS

	all_client	VARCHAR2(512);
	CURSOR 1_cursor IS
		select ...
		from table_1
		where client in (all_client)
		  and ...
		...

BEGIN
	all_client := '''A'',''B'',''C''';

	for c1 in 1_cursor loop


.......
end loop;

.....

END; It returns nothing.

Could someone tell me what's the problem?

Thanks. Received on Wed Aug 26 1998 - 17:23:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US