/**連番でUPDATEする*/
SET @i := 0;
UPDATE my_table SET id = (@i := @i +1)
おしまい。
Go to list of users who liked
More than 5 years have passed since last update.
/**連番でUPDATEする*/
SET @i := 0;
UPDATE my_table SET id = (@i := @i +1)
おしまい。
Register as a new user and use Qiita more conveniently
Go to list of users who liked