Skip site navigation (1) Skip section navigation (2)

Re: Triggers: FROM Inserted

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Triggers: FROM Inserted
Date: 2007-09-14 06:18:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
am  Fri, dem 14.09.2007, um 15:54:44 +1000 mailte Peter Stow folgendes:
> Hi
> I am trying to migrate an application from MS SQL Server to Postgres.  In MS
> SQL triggers I have been used to declaring variables inserted into a table
> using the syntax 'SELECT . . . FROM Inserted'.  Can anyone tell me if it is
> possible to use the same syntax (ie FROM Inserted) in Postgres?  If not, is


> there an alternative?

Yes ;-)

You can use NEW and OLD - variables. Read more about this:

Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA

In response to

pgsql-novice by date

Next:From: Jonathon StiermanDate: 2007-09-14 17:34:34
Subject: import a .out file
Previous:From: Peter StowDate: 2007-09-14 05:54:44
Subject: Triggers: FROM Inserted

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group