Re: Anonymous code blocks

Поиск
Список
Период
Сортировка
От Joshua Tolley
Тема Re: Anonymous code blocks
Дата
Msg-id 20091125223412.GF3803@eddie
обсуждение исходный текст
Ответ на Anonymous code blocks  (Mike Ellsworth <younicycle@gmail.com>)
Список pgsql-novice
On Mon, Nov 23, 2009 at 10:01:59AM -0500, Mike Ellsworth wrote:
> If I wanted to use this new feature in user expressions so that:
>
> DO.this= round("ben_stmt"."base_pay") +
> round("ben_stmt"."incent_comp") + round("ben_stmt"."advance_ben_dol")
> + round("ben_stmt"."er_cont_other")
> DO.that = round(DO.this/12)
> DO.yada = if(DO.that < 1000, 'consider a vegetable garden.','')

I'm not sure I understand your question, but one thing springs to mind, namely
that as currently implemented these anonymous blocks can't return any data.

- Josh / eggyknap

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Column aliases for GROUP BY and HAVING
Следующее
От: Kris Kewley
Дата:
Сообщение: Re: Column aliases for GROUP BY and HAVING