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

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

pl/sql problem

From: Min Wang <mwang_at_colorbank.com>
Date: 1998/08/26
Message-ID: <35E48AF7.2140C899@colorbank.com>#1/1

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 - 00:00:00 CDT

Original text of this message

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