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