| От | Some Developer |
|---|---|
| Тема | Re: Passing arguments to a function called by a trigger |
| Дата | |
| Msg-id | 51F3B9F3.9070405@googlemail.com обсуждение исходный текст |
| Ответ на | Re: Passing arguments to a function called by a trigger (Andreas Kretschmer <akretschmer@spamfence.net>) |
| Ответы |
Re: Passing arguments to a function called by a trigger
|
| Список | pgsql-novice |
On 27/07/2013 14:05, Andreas Kretschmer wrote: > Some Developer <someukdeveloper@gmail.com> wrote: > >> I have an INSERT AFTER trigger that runs on inserts into a specific >> table. I'm not sure if the function automatically gets all the >> information that was inserted into the table or whether you have to >> manually pass it in? > > NEW.<colum_name> is your friend ;-) > > > Andreas > Thanks for the tip. So I can just use NEW.<whatever> to get the values inserted into the table from inside the function that is called by the trigger? Is there a corresponding OLD as well if I ever want to do a trigger on an UPDATE?
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера