471,857 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,857 software developers and data experts.

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 9385

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

NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.