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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert or update in row level after insert or update trigger

Status
Not open for further replies.

ahmet_sinav

Programmer
May 16, 2007
10
0
0
TR
hi all;
how can i insert or update in the after insert or update trigger fro the same table. when i try this the trigger is firing again fire in trigger.

for example :
trigger for tbl_x after insert or update for each row;
create or replace function fooo();
begin
update tbl_x set fld1='1';
insert into tbl_x set fld2='3';
return null;
end;

Note : The synntax may be wrong. i only want that how can i make this?
 
When u use triggers u have can use two additionals tables OLD and NEW inside functions. Maybe try to modify them. If u use after i think u should modify NEW and then return NEW.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top