Iterate over an array in stored procedure

Поиск
Список
Период
Сортировка
От Henrik Zagerholm
Тема Iterate over an array in stored procedure
Дата
Msg-id 0FDBA12E-4E89-4878-B648-DBE91829D28A@mac.se
обсуждение исходный текст
Ответы Re: Iterate over an array in stored procedure
Список pgsql-general
Hello,

I wonder how I can iterate over a sql array in a pl/perl function.

I want to pass in an text[] to a function and then iterate through
the values and run it through a perl sprintf but I can't seem to get
it to work.

Should I do a generate_series and make an internal perl array?
If so how would I do this?

Regards,
Henrik

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Excell
Следующее
От: "Rhys Stewart"
Дата:
Сообщение: regexp searching in arrays not working?