Reputation: 35
So far, i know that:
Table
called DELETED
in my MSSQL Database.Table
which means it already existed.Is there a similar Table called UPDATED?
Upvotes: 0
Views: 3635
Reputation: 1270401
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.
Upvotes: 6
Reputation: 1454
you can see example of using DELETED and INSERTED logical tables in the MERGE statement:
https://learn.microsoft.com/en-us/sql/t-sql/statements/merge-transact-sql
Upvotes: 0