Created
September 22, 2016 17:01
-
-
Save danielyewright/fd7323b16a41a9349483556693193614 to your computer and use it in GitHub Desktop.
Updates a column's values with a hash based on another column's data
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
UPDATE Customers SET client_id = HASHBYTES('SHA1', CONVERT(VARCHAR(12), PKEY)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment