| From: | "Aaron Bono" <postgresql(at)aranya(dot)com> |
|---|---|
| To: | "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: How to get the row that start a trigger |
| Date: | 2006-09-03 23:17:46 |
| Message-ID: | bf05e51c0609031617l491ddaddnb91ccb322ff2c3bf@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On 8/31/06, Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com> wrote:
>
> Hi,
>
> I need make a trigger that update a table each time another table has a
> insert. but this insert has on this row all the items to pass to my function
> on the trigger.
>
> How to retrieve this information.
>
See the example at the end of the page
http://www.postgresql.org/docs/8.1/interactive/triggers.html - how it uses
the OLD and NEW implicit variable. You can use NEW.column_name to access
the data being inserted into the table.
Does this help?
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
http://codeelixir.com
==================================================================
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Markus Schaber | 2006-09-04 07:55:56 | Re: help with pagila |
| Previous Message | Andreas Kretschmer | 2006-09-03 07:07:10 | Re: Mac Address |