Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. select tab.TABLE_NAME, tab.AUTO_INCREMENT from information_schema.TABLES tab where tab.TABLE_SCHEMA = 'your_schema_name';
  2.  
  3. delete from table_name;
  4.  
  5. truncate table table_name;
  6.  
  7. ALTER TABLE table_name AUTO_INCREMENT = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement