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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Dynamic SQL

RE: Dynamic SQL

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Tue, 26 Mar 2002 11:03:53 -0800
Message-ID: <F001.00433C5E.20020326110353@fatcity.com>


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: jan_at_pruner.cz

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: ListGuru_at_fatcity.com (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: NDATFM_at_labor.state.ny.us
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: ListGuru_at_fatcity.com (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). Received on Tue Mar 26 2002 - 13:03:53 CST

Original text of this message

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