What are Magic Table?
Answer Posted / shailendra kashyap
Magic Tables:
Whenever a trigger fires in response to the
INSERT,DELETE,or UPDATE statement,two special tables are
created.These are the insert and the delete tables.They are
also referred to as the magic tables.These are the
conceptual tables and are similar in structure to the table
on which trigger is defined(the trigger table).
The inserted table contains a copy of all records that are
inserted in the trigger table.
The deleted table contains all records that have been
deleted from deleted from the trigger table.Whenever any
updation takes place,the trigger uses both the inserted and
deleted tables
| Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
What are the different types of replication are there in sql server 2000?
How to execute function in stored procedure sql server?
explain different types of cursors? : Sql server database administration
Can two tables share a primary key?
How to find index size for each index on table?
Is there any difference between the primary key and unique key?
Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?
what is dbcc? : Sql server database administration
Can you explain what are commit and rollback in sql?
Explain system scalar functions?
How to use old values to define new values in update statements in ms sql server?
Explain differentiate between a having clause and a where clause?
What are the mathematical functions supported by sql server 2005?
Do you know what are the ways available in sql server to execute sql statements?
Where the sql logs gets stored? : sql server database administration