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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • abacnet

    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,
  • Rauf Sarwar

    #2
    Re: How to handle a long strings in a pl sql stored procedure,


    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

    Comment

    Working...