A trigger can be executed before or after each row is inserted, or before the entire set of rows is inserted. In each case the name of a table containing the row or set of rows is passed to the program.