469,329 Members | 1,381 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,329 developers. It's quick & easy.

How to handle a long strings in a pl sql stored procedure,

Hi gurus,

I have a # separated string that can be greater than 4000 chars in
length. Here is an example : abababa#2121212#vbvbvbv
I need to get each token in a loop, in a pl sql stored procedure. That
means I need to pass the string as a parameter, in the stored
procedure and to get abababa, 2121212 and vbvbvbv. I guess I cannot
use Varchar2 since a Varchar2 cannot be greater than 4000 chars. I
really a working sample for that.

Thanks,
Jul 19 '05 #1
1 9055

Originally posted by Abacnet
Hi gurus, I have a # separated string that can be greater than 4000 chars in length. Here is an example : abababa#2121212#vbvbvbv I need to get each token in a loop, in a pl sql stored procedure. That means I need to pass the string as a parameter, in the stored procedure and to get abababa, 2121212 and vbvbvbv. I guess I cannot use Varchar2 since a Varchar2 cannot be greater than 4000 chars. I really a working sample for that. Thanks,


Read up on Oracle datatypes at http://tahiti.oracle.com.

- You can store upto 32767 bytes of data in a PLSQL VARCHAR2 variable.

- You can ONLY store upto 4000 bytes in a VARCHAR2 type database column.

Regards

/Rauf Sarwar
--
Posted via http://dbforums.com
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.