Comments on: Create logging data in the same table https://technology.amis.nl/2005/03/25/create-loging-date-in-the-same-table/ Friends of Oracle and Java Mon, 04 May 2015 08:10:38 +0000 hourly 1 http://wordpress.org/?v=4.2.1 By: Erik Kerkhoven https://technology.amis.nl/2005/03/25/create-loging-date-in-the-same-table/#comment-1965 Mon, 07 Nov 2005 21:42:31 +0000 /?p=479#comment-1965 What is exactly the business case here? Say we have an entity PERSON, with id, name, et cetera; and an entity STATUS_HISTORY with attributes: id, person_id, status_id, start_date_active, user_id et cetera. Then, status modifications can be easily implemented by simply adding a new record to the status_history table. That’s all. 😉

]]>
By: Mike Friedman https://technology.amis.nl/2005/03/25/create-loging-date-in-the-same-table/#comment-1964 Sun, 27 Mar 2005 02:14:47 +0000 /?p=479#comment-1964 But why would you want to do this? Seems like you massively complicate all future business logic with this table.

For example, say you repeat your update… ouch! You’re updating your audit rows too!

]]>
By: amihay gonen https://technology.amis.nl/2005/03/25/create-loging-date-in-the-same-table/#comment-1963 Sat, 26 Mar 2005 18:56:38 +0000 /?p=479#comment-1963 you can use dbms_wm.enable_version . use table with version, give more options , less code to write.

]]>