| От | A. Kretschmer |
|---|---|
| Тема | Re: Triggers: FROM Inserted |
| Дата | |
| Msg-id | 20070914061832.GA7443@a-kretschmer.de обсуждение |
| Ответ на | Triggers: FROM Inserted ("Peter Stow" <peters@BarwonHealth.org.au>) |
| Список | 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
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера