mysql数据库表自增ID批量修改 AUTO_INCREMENT


mysql数据库表自增ID批量修改 AUTO_INCREMENT

SELECT CONCAT( 'ALTER TABLE ', TABLE_NAME, ' AUTO_INCREMENT = 1;' )
FROM information_schema.tables
WHERE table_schema = 'test'
LIMIT 0 , 10000;
普人特福的博客cnzz&51la for wordpress,cnzz for wordpress,51la for wordpress