Skip to content

Instantly share code, notes, and snippets.

@snarf1974
Created April 22, 2014 23:46
Show Gist options
  • Save snarf1974/11198226 to your computer and use it in GitHub Desktop.
Save snarf1974/11198226 to your computer and use it in GitHub Desktop.
MySQL: Refresh row positions after deleting one
ALTER TABLE tablename AUTO_INCREMENT = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment