Magic Tables ?
Answers were Sorted based on User's Feedback
Answer / punit chauhan
whenever a trigger is fire in response to an insert, delete and update statement.
Two special tables create, these are the inserted and deleted tables, they are also referred as magic tables.
* whenever we insert any record into the table then trigger use inserted table.
* whenever we delete any record into the table then trigger use deleted table.
* whenever we update any record into the table then trigger use inserted and deleted tables.
Is This Answer Correct ? | 16 Yes | 0 No |
Answer / rani
Refer this link which nicely demonstrates the Magic Table.
Magic Table are the INSERTED and DELETED tables which we
cannot see from the database, but can be accessed using
Triggers.
When a new row is added an INSERTED table gets created with
the inserted row. Similarly when a row is updated a DELETED
table is created with the deleted row. For update the old
data is moved to the DELETED table and the new updated row
gets created in the INSERTED table.
Is This Answer Correct ? | 4 Yes | 3 No |
Can a function call a stored procedure in sql server?
How to implement service broker?
what are different types of raid configurations? : Sql server database administration
It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio
What is database mirroring?
find 2nd highest salary of person using cursor concept?
What are different types of schemas?
what purpose does OPENXML clause have in sql server stored procedure?
what is web server?
How to send email from database?
How do you manipulate data?
Where are full-text indexes stored?