Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
After Creating Triggers two tables will created automatically,What are those tables?
Posted
Comments
Kornfeld Eliyahu Peter 15-Dec-14 5:06am    
Ask the one created the trigger!
Ankur\m/ 15-Dec-14 5:27am    
Homework / Interview question?
[no name] 15-Dec-14 5:40am    
2 temporary table are created after trigger fires .New record and old records are Stored in 2 temp tables . we can get old fields by (eg: :old.id ) and new fields by (eg: :new.id ).

ur questions is not clear .try to write questions in proper way..thanks 4 ur downvoting..

Do you mean below two tables?
1.Inserted
2.Deleted
 
Share this answer
 
Comments
Harsh Athalye 15-Dec-14 7:16am    
why downvote?
If you have implemented any trigger for any Tables then,
Whenever you insert a record into a table, that record will be in the INSERTED Magic table.
Whenever you update the record in that table, that existing record will be in the DELETED Magic table and the modified new data with be in the INSERTED Magic table.
Whenever you delete a record in that table, that record will be in the DELETED Magic table only.
These magic tables are used inside the Triggers for tracking the data transaction.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900