Looping through string constants

Поиск
Список
Период
Сортировка
От David Kerr
Тема Looping through string constants
Дата
Msg-id 20090812225551.GA51062@mr-paradox.net
обсуждение исходный текст
Ответы Re: Looping through string constants
Список pgsql-general
I'd like to loop through a group of constant string values using plpgsql

The best analog i can think of would be in a shell script
#!/usr/bin/ksh

for a in a b c d e; do
echo $a
done

./a.ksh
a
b
c
d
e


Is there some tricky way I can make that happen in postgres?

(I don't want to put the values in a table =) that would be too easy!)

Thanks

Dave

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

Предыдущее
От: Emanuel Calvo Franco
Дата:
Сообщение: Simulate count result are distinct between 8.3 and 8.4
Следующее
От: Aleksey Tsalolikhin
Дата:
Сообщение: trouble building pgbench on CentOS 5.3: /usr/bin/ld: cannot find -lpgport