Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Need a delete trigger that tracks deletes.

Re: Need a delete trigger that tracks deletes.

From: Paul Baumgartel <treegarden_at_yahoo.com>
Date: Mon, 18 Mar 2002 14:59:11 -0800
Message-ID: <F001.0042C8CA.20020318145911@fatcity.com>


Sure. Create a journal table whose structure is the same as the table of interest, with the addition of "user", "timestamp", and whatever else you're interested in tracking. In your "before delete" trigger, just write the about-to-be-deleted row to the journal table, with the additional columns populated appropriately.

Paul Baumgartel


Do You Yahoo!?
Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Paul Baumgartel
  INET: treegarden_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Mar 18 2002 - 16:59:11 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US