Store Procedures

From: Cesar Alvarez <c(dot)alvarezx66(at)gmail(dot)com>
To: PGSQL GEneral Mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Store Procedures
Date: 2007-03-17 15:41:38
Message-ID: 45FC0C32.3090905@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello.
I been having "problems" with and application, and i want to store in
the data base the changes(update) made to a specific table.
what i need is to see how 2 fields specific change there values, to do
that i plan to make a temporal table with the fields before and after
plus the time the changes where made... can i do this with store
procedures??

here are the 2 fields are:
"cajas" INTEGER,
"unidades" INTEGER,

in the temporal table will be
"before_cajas" INTEGER,
"before_unidades" INTEGER,
"after_cajas" INTEGER,
"after_unidades" INTEGER,

Regards Cesar Alvarez.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2007-03-17 16:34:44 Re: Store Procedures
Previous Message hubert depesz lubaczewski 2007-03-17 15:22:24 Re: Creation of a read-only role.