Re: PostgreSQL Functions / PL-Language

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: PostgreSQL Functions / PL-Language
Дата
Msg-id 20060218083154.GB20716@svana.org
обсуждение исходный текст
Ответ на PostgreSQL Functions / PL-Language  ("Jan Cruz" <malebug@gmail.com>)
Ответы Re: PostgreSQL Functions / PL-Language
Список pgsql-general
On Sat, Feb 18, 2006 at 04:10:13PM +0800, Jan Cruz wrote:
> Correct me if I am wrong but SQL procedural language doesn't have support
> for variable declarations?

Correct, you'll need pl/pgsql for that.

> Why does my stored function returns only the first row of the query instead
> of the whole set of query?

Did you declare your function to return "setof <whatever>" ?

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Updating a sequential range of unique values?
Следующее
От: "Jan Cruz"
Дата:
Сообщение: Re: PostgreSQL Functions / PL-Language