Skip to content

Instantly share code, notes, and snippets.

@pierot
Created May 8, 2019 08:12
Show Gist options
  • Save pierot/a6282eac19f95f5f68eeab32b9744235 to your computer and use it in GitHub Desktop.
Save pierot/a6282eac19f95f5f68eeab32b9744235 to your computer and use it in GitHub Desktop.
SET @rank:=0;
UPDATE users SET email = CONCAT('test+', @rank:=@rank+1, '@test.be') WHERE id > 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment