Re: Calling functions from within pl/pgsql

Поиск
Список
Период
Сортировка
От Achilleas Mantzios
Тема Re: Calling functions from within pl/pgsql
Дата
Msg-id 200712041523.05011.achill@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на Re: Calling functions from within pl/pgsql  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: Calling functions from within pl/pgsql  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-sql
Στις Tuesday 04 December 2007 14:59:43 ο/η Pavel Stehule έγραψε:
> On 04/12/2007, Achilleas Mantzios <achill@matrix.gatewaynet.com> wrote:
> > I noticed that in pl/pgsql simply
> > result := funcname(func,args,...);
> > just works.
> > Should i rely on it or take it as a coincidence? :)
>
> You found assignment :). Sure, you can use it.
> http://www.postgresql.org/docs/8.2/interactive/plpgsql-statements.html#PLPG
>SQL-STATEMENTS-ASSIGNMENT

Sure, i missed the
"As explained above, the expression in such a statement is evaluated by means
of an SQL SELECT command sent to the main database engine. The expression
must yield a single value."
part.
Thanx.

>
> Regards
> Pavel Stehule
>
> > --
> > Achilleas Mantzios
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: explain analyze is your friend



--
Achilleas Mantzios


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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Calling functions from within pl/pgsql
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Calling functions from within pl/pgsql