Basic trigger question

Поиск
Список
Период
Сортировка
От Travis Bauer
Тема Basic trigger question
Дата
Msg-id Pine.GSO.4.21.0005031538320.11501-100000@fiddler.cs.indiana.edu
обсуждение исходный текст
Ответ на Removing NOT NULL Contraint  (Matthew <matt@ctlno.com>)
Список pgsql-general
I would like a trigger that does the following:

Whenever a record is updated or inserted into table A, insert a copy of
that record into table B, which is has exactly the same structure as table
A, except for an autoincrementing field which should get the next logical
value whenever a record is entered.

I'm sure this is a basic trigger problem, but I'm having trouble
figuringout the docs.

Thank in advance,

----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------



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

Предыдущее
От: Cliff Rowley
Дата:
Сообщение: Re: [PHP3] Job openings (FreeBSD/C/php/postgresql)
Следующее
От: Terry Jarrard
Дата:
Сообщение: What do you think?