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

Поиск
Список
Период
Сортировка
От VENKTESH GUTTEDAR
Тема [GENERAL] How to loop through multi-dimentional array in PL/PGSQL
Дата
Msg-id CA+iwz4kw-LNgtiLKv0t85TiBZ1SZXrbh3ADiVxPHms+xfQwV=w@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] How to loop through multi-dimentional array in PL/PGSQL
Список pgsql-general
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.

В списке pgsql-general по дате отправления:

Предыдущее
От: Roshan Jha
Дата:
Сообщение: [GENERAL] Regrding:- Arduino-Postgresql Direct Connection
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: [GENERAL] Looking for an online mentor