Created
October 12, 2012 18:05
-
-
Save PJensen/3880579 to your computer and use it in GitHub Desktop.
Updating a table using a source and destination table.
This file contains hidden or 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
| -- Updating a table using a source and destination table. | |
| BEGIN TRAN | |
| UPDATE [ToTable] | |
| SET [ToTable].[Value] = [FromTable].[Value], | |
| ... | |
| FROM [FromTable] | |
| INNER JOIN [ToTable] ON ( /* Join Conditions */ ) | |
| WHERE ( /* Where Clause */ ) | |
| ROLLBACK TRAN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment