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 -> Limitations of the Native dynamic Sql and Case expressions

Limitations of the Native dynamic Sql and Case expressions

From: Lolita <lolitagroux_at_hotmail.com>
Date: 7 Apr 2003 11:04:59 -0700
Message-ID: <8027ad1.0304071004.c81ee40@posting.google.com>


Hi,

I have two questions.
I am working with Oracle 8i.

If you don&#8217;t have the answers I will be happy to read any documentation that can help me.

First Question:
Is there any one who knows what is the longest character string I can pass into an &#8216;open for&#8217; statement?

OPEN c_Cusor FOR
&#8216;Select *

 from test&#8230;.what is the longest length of the string I can pass to the open statement&#8217;

I have looked into the documentation and it says that the DBMS_SQL supports statements that are more than 32KB in length. Since they were comparing between DBMS_SQL and native dynamic sql I assumed that NDS was not able to support statements that are more than 32KB.

I have tested the OPEN FOR statement with a select statement over than 32KB and it worked.

Second question:
In the select statement of the OPEN FOR statement I use a CASE expression.

The documentation says the following:

&#8216;The maximum number of arguments in a CASE expression is 255,
and each WHEN ... THEN pair counts as two arguments. To avoid exceeding the limit of 128 choices, you can nest CASE expressions.
&#8216;

I have tested the case statement with over 128 choices and it worked. Is there any one who have information about that?

Thanks in advance
Lolita Received on Mon Apr 07 2003 - 13:04:59 CDT

Original text of this message

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