Created
April 13, 2018 08:53
-
-
Save shaneis/0900760e17bf167d71223dfa4dcaddbb to your computer and use it in GitHub Desktop.
The code for using OUTPUT with the DELETE statement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM dbo.CustomersTableIdent | |
OUTPUT deleted.id, deleted.FirstName, deleted.LastName | |
WHERE id % 5 = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment