Re: syntax question

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: syntax question
Дата
Msg-id 200302231507.23831.josh@agliodbs.com
обсуждение исходный текст
Ответ на syntax question  ("James Cooper" <jim@luckydigital.com>)
Ответы Re: syntax question  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
Список pgsql-sql
James,

> I understand this and my current example actually works.
> My question is I dont need a loop as it only ever returns one row.

This is a current limitation of PL/pgSQL.   Until PL/pgSQL is improved by some
enterprising soul, you cannot select the results of a query directly into a
RECORD variable without a loop.

For that matter, you will find that you cannot declare an array variable
inside a PL/pgSQL procedure.  This is also on the TODO list.

--
Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: SQL Statements question, why I get errors...
Следующее
От:
Дата:
Сообщение: Re: SQL Statements question, why I get errors...