Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How should I start

Status
Not open for further replies.

RycherX

Programmer
Mar 18, 2002
20
0
0
US
I have 2 tables

table1 fields
--------------
quote
status

I want to set up a table

table2 fields
---------------
quote
status
date


In the event that table1.status changes, I want a transaction log in table2. Any suggestions to point to the right direction?
 
Hi

Code:
create or replace trigger table1_modify
before update of status on table1
for each row
begin
  insert into table2 (quote,status,"date") values (:new.quote,:new.status,sysdate);
end;

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top