473,323 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 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 9584

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: mingzhen | last post by:
Hi, I have a problem here when I code stored procedure to manipulate data in database. My idea is that if I can save all data I get in some arrays I should be able to manipulate the arrays...
3
by: aaj | last post by:
SQL SERVER 2000 Hi all This is my first attempt at writing a stored procedure. I have managed to get it working but its unlikely to be the best way of handling the problem. While writing it I...
2
by: Gary Homewood | last post by:
I have an ASP page calling a stored procedure. I have set the connection and command timeouts and I have error checking so I can trap a timeout from the stored proc (as detailed here)...
0
by: Indira | last post by:
I am facing a problem. I have a long running Stored procedure. As per what I have read, if OleDbCommand.CommandTimeout is not set, as is in my case, the query should be timed out in 30 seconds...
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
3
by: Joseph Lu | last post by:
Hi, all I have a stored procedure created in SQL Server like the following lines. // stored proceudre code starts here CREATE PROCEDURE sp_insertdata @strdata varchar(250) , @rsult BIT...
3
by: andrewkl | last post by:
hi, I have the following Perl code that inserts a string to an Oracle DB via a stored procedure: #!/usr/local/bin/perl ## Perl v5.8.6 built for sun4-solaris use strict; BEGIN...
1
by: abacnet | last post by:
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...
5
by: E11esar | last post by:
Hi there. I have a stored procedure which when invoked using EXEC in Sql Server Management Studio takes about 20 minutes to even start. The EXEC command includes two input variables which hold XML...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.