Re: Inserting Data

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Inserting Data
Дата
Msg-id b42b73150608181916j3c2be0fg8b3da8f03e5196f@mail.gmail.com
обсуждение исходный текст
Ответ на Inserting Data  (Bob Pawley <rjpawley@shaw.ca>)
Список pgsql-general
On 8/18/06, Bob Pawley <rjpawley@shaw.ca> wrote:
> Unfortunately this gave multiple results on the target tables.
>
> Is there a format that will give me a single insert for each original field
> without the need of creating three triggers???
>
> Bob

try using old/new in your trigger functions.

insert into table (targetfield) new.field;

merlin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query optimization and indexes
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Inserting Data