Thread: trigger examples
I need to write a trigger to create a new record in log table if it's a new record or if column A and B changes. Can someone give me an example how to do this. Are there any sites that gives trigger examples?? Thanks.
Carolyn Lu Wong wrote: > > I need to write a trigger to create a new record in log table if it's a > new record or if column A and B changes. Can someone give me an example > how to do this. > > Are there any sites that gives trigger examples?? > > Thanks. the fulltextindex in the contrib dir gives an example
drfrog@smartt.com wrote: > > Carolyn Lu Wong wrote: > > > > I need to write a trigger to create a new record in log table if it's a > > new record or if column A and B changes. Can someone give me an example > > how to do this. > > > > Are there any sites that gives trigger examples?? > > > > Thanks. > > the fulltextindex in the contrib dir gives an example The example uses C. Is it possible to create the trigger with plpsql function?
This is an example script I use to keep a log of all database operations on my tables. Hope it helps. At 05:05 PM 3/10/2000 +1000, Carolyn Lu Wong wrote: >drfrog@smartt.com wrote: > > > > Carolyn Lu Wong wrote: > > > > > > I need to write a trigger to create a new record in log table if it's a > > > new record or if column A and B changes. Can someone give me an example > > > how to do this. > > > > > > Are there any sites that gives trigger examples?? > > > > > > Thanks. > > > > the fulltextindex in the contrib dir gives an example > >The example uses C. Is it possible to create the trigger with plpsql >function?