Re: Calling plSQL functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Calling plSQL functions
Дата
Msg-id 5332.987188573@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Calling plSQL functions  (Lonnie Cumberland <lonnie_cumberland@yahoo.com>)
Список pgsql-sql
Lonnie Cumberland <lonnie_cumberland@yahoo.com> writes:
> Actually I have the need at different places in my functions to
> sometimes work on the list items returned from a query and also have
> the need to just work on the first result returned by a query.

SELECT ... LIMIT 1 will serve the second need.  For the first, perhaps
use the FOR ... loop construct in plpgsql.
        regards, tom lane


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

Предыдущее
От: Lonnie Cumberland
Дата:
Сообщение: Re: Calling plSQL functions
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Calling plSQL functions