Created
April 13, 2018 08:56
-
-
Save shaneis/d9a84f52ea4f1680b6664c181c1ecf62 to your computer and use it in GitHub Desktop.
Shows how to use OUTPUT with the INSERT 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
INSERT INTO dbo.CustomersTableIdent (FirstName, LastName) | |
OUTPUT inserted.id, inserted.FirstName, inserted.LastName | |
VALUES ('My first name', 'My last name'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment