Created
August 4, 2022 08:37
-
-
Save ipang-dwi/726b5a972b4d3ed3ffaf738c1cad35ed to your computer and use it in GitHub Desktop.
update field with serialized value
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 @rank:=0; | |
update tablename | |
set fieldname =@rank:=@rank+1 ORDER BY fieldorder; | |
// nb: ini biar gak lupa, bwt update field dgn serialized value | |
// firstplato.com | |
// ipang-dwi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment