Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

VARCHAR2 limit in PL/SQL

329230Apr 15 2003 — edited Apr 16 2003
I have a stored procedure which generates code
dynamically - basically a 'SELECT ... FROM DUAL
UNION SELECT ... FROM DUAL ..... UNION SELECT ... FROM DUAL' construct -
that I use in an 'OPEN my_cursor FOR my_statement'.
It's a bit wicked but that's the way I need to do it.
(The interface must have a "IN OUT REF CURSOR"!)
Now, my problem is that I'm stuck with the 32767 bytes
limit of VARCHAR2 when constructing my_statement.

Any idea of what can be done to overcome the problem
of my_statement exceeding this 32767 limit?

I thought of using an array of VARCHAR2(32767) but
I'd like to know if there's something better.

Regards,

Yannick.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2003
Added on Apr 15 2003
6 comments
273 views