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: | 20070914061832.GA7443@a-kretschmer.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
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
No.
> there an alternative?
Yes ;-)
You can use NEW and OLD - variables. Read more about this:
http://www.postgresql.org/docs/8.1/interactive/plpgsql-trigger.html
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathon Stierman | 2007-09-14 17:34:34 | import a .out file |
Previous Message | Peter Stow | 2007-09-14 05:54:44 | Triggers: FROM Inserted |