So far, i know that:
- There is a
TablecalledDELETEDin my MSSQL Database. - I have not created that
Tablewhich means it already existed.
6Is there a similar Table called UPDATED?
2 Answers
There is not a deleted table in SQL Server. There are "logical tables" (I think of them more like views, but the implementation is not important) called deleted and inserted that are available in triggers and other operations that alter data in tables.
An update trigger defines both of them.
This is pretty well explained in the documentation.
1you can see example of using DELETED and INSERTED logical tables in the MERGE statement: