Created
June 4, 2013 00:53
-
-
Save marifrahman/5702787 to your computer and use it in GitHub Desktop.
SQL Query for MS SQL Server to sequentially update a column
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
DECLARE @myVar numeric | |
SET @myVar = 10 | |
UPDATE | |
tblMyTable | |
SET | |
@myvar = myId = @myVar + 1 | |
Where condition = 'Something' And isDeleted = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment