Skip to content

Instantly share code, notes, and snippets.

View powolnymarcel's full-sized avatar
:octocat:
⭐️ Stay hungry. Stay foolish. ⭐️

Talk is cheap show me the code powolnymarcel

:octocat:
⭐️ Stay hungry. Stay foolish. ⭐️
View GitHub Profile
@powolnymarcel
powolnymarcel / reset_id_column.sql
Created April 24, 2020 07:33 — forked from irazasyed/reset_id_column.sql
MySQL: Reset id column to auto increment from 1
-- your_table: The table to modify
-- id: The id field/column to reset
SET @num := 0;
UPDATE your_table SET id = @num := (@num+1);
ALTER TABLE your_table AUTO_INCREMENT =1;
https://www.codeandweb.com/babeledit