Re: RULE - special variables?

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: RULE - special variables?
Дата
Msg-id 52EF20B2E3209443BC37736D00C3C1380B562CA8@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на RULE - special variables?  (Matthew Peter <survivedsushi@yahoo.com>)
Ответы Re: RULE - special variables?  (Shane Ambler <pgsql@007Marketing.com>)
Список pgsql-general
> Do rules get special variables like triggers? Can I set
> variables in them like
> triggers?

A rule is one or more SQL-Statements - how do you set variables in SQL?

Don't think of a rule as a program!

In a statement in a rule, you have the pseudotables 'OLD' and 'NEW'
which refer to the affected rows of the table on which the rule is
defined, OLD (in DELETE and UPDATE rules) referring to the values before
the triggering statement takes place, and NEW (in INSERT and UPDATE)
referring to the values afterwards.

Yours,
Laurenz Albe

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

Предыдущее
От: Richard Ollier
Дата:
Сообщение: Table design - unknown number of column
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Table design - unknown number of column