MySQL Forums
Forum List  »  Triggers

begin .. for each row in other table{ } ... end
Posted by: davy timmermans
Date: March 30, 2006 05:08PM

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.

Options: ReplyQuote




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.