September 2010
Intermediate to advanced
1704 pages
111h 8m
English
inserted and deleted TablesIn most trigger situations, you need to know what changes were made as part of the data modification. You can find this information in the inserted and deleted tables. For the AFTER trigger, these temporary memory-resident tables contain the rows modified by the statement. With the INSTEAD OF trigger, the inserted and deleted tables are actually temporary tables created on-the-fly.
The inserted and deleted tables have identical column structures and names as the tables that were modified. Consider running the following statement against the BigPubs2008 database:
![]()
When this statement is executed, a copy of the ...