Error when trying to use a FOR loop

Поиск
Список
Период
Сортировка
От Kevin Nikiforuk
Тема Error when trying to use a FOR loop
Дата
Msg-id 6EA72AC41F81D242A38AAF505523A94D022DF2@kappa.acrodex.net
обсуждение исходный текст
Ответы Re: Error when trying to use a FOR loop
Re: Error when trying to use a FOR loop
Список pgsql-sql
Sorry if this is in the archives, but I've done a search and couldn't find anything relevant. I'm running HP's
precompiledversion of 8.1.3.1 as part of their Internet Express offering, and I can't seem to run a for loop. Here's
whatI'm seeing: 

xp512-0715-0716=# FOR LV in 1..10 LOOP

xp512-0715-0716-# select * from ldevrg;

ERROR: syntax error at or near "FOR" at character 1

LINE 1: FOR LV in 1..10 LOOP
           ^

I'm still pretty new to postgres, but based on the documentation I'm not picking up what I'm doing wrong.

Help much appreciated.

Thanks,

Kevin



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

Предыдущее
От: John Tregea
Дата:
Сообщение: Re: Storing encrypted data?
Следующее
От: ivan marchesini
Дата:
Сообщение: simple problem???