Re: Inserting Data

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
Cc: Postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Inserting Data
Date: 2006-08-19 02:16:35
Message-ID: b42b73150608181916j3c2be0fg8b3da8f03e5196f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/18/06, Bob Pawley <rjpawley(at)shaw(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-08-19 02:27:12 Re: Inserting Data
Previous Message macgillivary 2006-08-19 01:47:30 Re: Massive slowdown when LIMIT applied