JP,

No, but you can make multiple 4000 char strings and concat it all together:

sel1 varchar2(4000);
sel2 varchar2(4000);
where_clause varchar2(4000);
order_by_clause varchar2(4000);
begin

open my_cursor for sel1 || sel2 || where_clause || order_by_clause;

I do it all the time!

Hope this helps.

Tom Mercadante
Oracle Certified Professional


-----Original Message-----
Sent: Tuesday, March 26, 2002 1:44 PM
To: Multiple recipients of list ORACLE-L


Hello
I'm using variable sqlstr VARCHAR2(4000) in procedure to create SELECT
string.
But the length of my SELECT * FROM  ....  is bigger than 4000 chars.

Is there a way how to call OPEN my_cursor FOR sqlstr;
for sqlstr longer than 4000 signs?

JP
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jan Pruner
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mercadante, Thomas F
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to