Hi, im currently having a problem regarding triggers. I have a table in which whenver i insert/update records in it, i want a trigger to be fired that does:
Get the record(s) related to the inserted/updated row from another table and copy it in another.
My problem is i don't know how to loop to all the records returned by the select statement so I can retrieve the row IDs. I need to insert these IDs in another table via this trigger. Im not sure if looping is the best way, but I dont have any ideas. Any suggestions?
Start Free Trial