Home » SQL & PL/SQL » SQL & PL/SQL » Tracking changes to rows in Oracle 9i
Tracking changes to rows in Oracle 9i [message #39917] Fri, 23 August 2002 06:53 Go to next message
Ray Ruvinskiy
Messages: 1
Registered: August 2002
Junior Member
Hi,
I would like to implement a history feature for my application whereby anytime one of the columns in one of my tables is updated, the time of update, name of the column, old value, and new value are stored in the "history table" corresponding to the table being updated.

I want to use triggers for this, but I can't find an elegant way of checking which columns are actually being modified. The only way I can think of doing that is by having as many if statements as there are columns, which is ugly if, say, there are 15 columns in the table.

Any suggestions would be appreciated.
Re: Tracking changes to rows in Oracle 9i [message #39918 is a reply to message #39917] Fri, 23 August 2002 09:53 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:59412348055
Previous Topic: Constraint
Next Topic: Can the data for a view be altered using Pl/sql?
Goto Forum:
  


Current Time: Fri Apr 26 14:09:07 CDT 2024