count according to id in mysql code example Example: set id count mysql ALTER TABLE name AUTO_INCREMENT=310;