begin .. for each row in other table{ } ... end
in pseudo code:
create trigger medewerker_helper after instert on medewerker
BEGIN
for each row in salesman: (=other tabel)
set @id = select sid from salesman
INSERT INTO medewerkerUsers VALUES( @i,new.cid , 'I');
END
Edited 1 time(s). Last edit at 03/30/2006 06:08PM by davy timmermans.
Subject
Views
Written By
Posted
4146
March 30, 2006 04:40PM
begin .. for each row in other table{ } ... end
2531
March 30, 2006 05:08PM
2348
April 01, 2006 06:54AM
2330
April 01, 2006 10:20AM
2398
April 01, 2006 11:52AM
1968
April 02, 2006 11:52AM
6665
April 03, 2006 08:40AM
2250
April 03, 2006 12:25PM
2221
April 04, 2006 08:06AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.