Created
September 29, 2017 06:12
-
-
Save kobeumut/c29587905cbf78308ed9d6b72b1b19da to your computer and use it in GitHub Desktop.
New id field sql query with increasing number.
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
SET @serial=0; | |
UPDATE table_name SET new_product_id = @serial := @serial+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment