Re: function from rule

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: function from rule
Дата
Msg-id 20011203111017.P93680-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на function from rule  (sara_software@hotmail.com (sara_software))
Список pgsql-general
On 30 Nov 2001, sara_software wrote:

> I have a rule that calls a function on insert to a particular table.
>
> I need this function to get the values from the insert function. so if
> someone enters:
>
> insert into this_table values(1,2,3);
>
> I want to declare a variable and assign it the values in the insert
> action.

I think you can get the specified data via NEW.<column> in the rule.



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Problem with security
Следующее
От: "Peter Darley"
Дата:
Сообщение: Re: Installing DBD::Pg module without Pg Database server