Search Postgresql Archives

How to loop through multi-dimentional array in PL/PGSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

    Please help me in accessing multi-dimentional array in postgresql PL/PGSQL.

    for i in array_lower(product_list, 1) .. array_upper(product_list, 1)
    LOOP
        product_list[i][0];
    END LOOP;

    Is the above code right?

    Or is there any other way to access, i am getting null for product_list[i][0];

    Any help would be appreciated.

--
Regards :
Venktesh Guttedar.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux