Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Dynamic SQL
Hmm .... this is a classic RTFM, but the answer is here ...
if you are using dbms_sql then use "procedure dbms_sql.parse(c in integer, statement in varchar2s, lb in integer, ub in integer, lfflg in boolean, language_flag in integer);" syntax. This requires you to declare a local variable of type "dbms_sql.varchar2s". This type is essentially an index by table of varchar2(2000), so you are then pretty much limited by your creativity for the length of the sql statement. More information is available in $ORACLE_HOME/rdbms/admin/dbmssql.sql (it is a very good reading).
If you are using "execute immediate" thant I don't see what you'd have a problem with 4000 characters. You mention 4000, so I assume you are on 8i or 9i, then since Oracle 7x, the varchar2 variable is 32K-1 i.e. 32767 in pl/sql, way more than 4000 characters.
In either case, you win.
Raj
QOTD: Any clod can have facts, but having an opinion is an art!
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jamadagni, Rajendra INET: Rajendra.Jamadagni_at_espn.com 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:29:21 CST
- text/plain attachment: ESPN_Disclaimer.txt