number_list, string_list

is there something like number_list and string_list in oracle? If so, pls explain

I'm not sure whether it exists in oracle

We can use like this

by creating the table number and used as list number

http://www.java2s.com/code/Oracle/PL-SQL/Extendspaceinnumberlist.htm

Tags: Database

Similar Questions

  • An array of strings as function parameter in loop fails

    Hallo,

    I have a weird problem here and I hope someone can help me find the cause.

    I have a function where I said an array of strings (string_list). I pass the array to a function that does modifactions to the table. I am addressing Walker the array of strings to an index of all the values are stored correctly. When I loop through the array by incrementing the index automatically only the last index value are saved in all positions.

    Why is this? Or what I am doing wrong?

    It is the passage to another function, an array of strings
    int calling_function
    {
    char * string_list [MAX_PATHNAME_LEN]; //< store="" strings="" in="">
    function_called (string_list); passing a pointer to an array of string
    return 0;
    }

    This is the function receives a reference to an array of strings to store data
    int function_called (char * output_list [])
    {
    int i = 0; counter variable
    / * This works and good values are stored in output_list * /.
    output_list [0] = '02 ";
    output_list [1] = '12 ';
    output_list [2] = "22";
    output_list [3] = "32";
    output_list [4] = '42 ';
    output_list [5] = "52";
    output_list [6] = '622 ';
    output_list [7] = "72".

    / * This does not work and will store '31' in all places of the matrix * /.
    < 32="">
    {
    < %d »,="" i) ;="" incrémenter="" la="" valeur="">< br=""> output_list [i] = sample; < br=""> i = i ++ ; < br=""> < br="" >="">

    output_list [0] = '02 "; < br=""> output_list [1] = '12 ';< br="" >="">

    Thanks!

    Hi,.

    When you do

    output_list [i] = sample;

    all of the members of the array have the same value: sample-a char pointer. You are modifying the afterwards glad of sample purpose the previous values still point to sample.

    If you assign values to each array member like:

    you assign different values: a pointer to a string containing "02", pointing to a string contaning "12",...

    If you want to assign values in a loop you need to allocate memory for each string (output_list [i]) and copy the content of sample in them.

    Does this make sense to you?

    Constantin

Maybe you are looking for

  • Milestone: Cannot find my WiFi router...

    My phone does not find my wireless router. Yet, he finds the routers from other users in my area.

  • Windows sound recorder XP does not work?

    He was of use without problem, but not more. At the same time I can't hear the voice when I play any vedio You Tube

  • Exception treatment massage c0000013 parameters 75b6bf9c 4 75b6bfc 75bf9c.

    I am facing a problem with windows error massage is "Exception Processing massage c0000013 parameters 75b6bf9c 4 75b6bfc 75bf9c. view the code: NO DISC Please think, how can I get ride of this problem, this error comes again and again.

  • How to delete files from Windows Update

    I managed to install Windows updates in Windows Vista, but I have a small hard drive and the Update files are devouring my space.  Is their a way I can remove these packages in fr. Update upward Disk space? cordially Rose945

  • HP HDX16 - 1005EA Windows 7 64-bit

    The keyboard on my computer, now about 3 years, collapses with keys to break or become loose and some keys not working not at all, or repeat several times whenever I use them. I use a wireless keyboard instead which works well, but I suspect that the