Re: SQL Rule

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: SQL Rule
Дата
Msg-id 200604261438.46879@hal.medialogik.com
обсуждение исходный текст
Ответ на Re: SQL Rule  ("Bert" <clemens.bertschler@gmail.com>)
Список pgsql-general
On April 26, 2006 02:35 pm, "Bert" <clemens.bertschler@gmail.com> wrote:
> CREATE TRIGGER trigger_sum
>     AFTER INSERT OR UPDATE
>     ON test
>     FOR EACH ROW
>     EXECUTE PROCEDURE trigger_test();
>
> The inserting and updating is doing well, but its not summing up the a
> and b and save it to the c column. So far maybe you can help me second
> time.

That would need to run BEFORE INSERT OR UPDATE, not AFTER.

--
Alan

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

Предыдущее
От: "Bert"
Дата:
Сообщение: Re: SQL Rule
Следующее
От: "Bert"
Дата:
Сообщение: Re: SQL Rule