lunes, 14 de abril de 2014

Reset MySQL Autoincrement Column

Directly Reset Autoincrement Value
Alter table syntax provides a way to reset autoincrement column. Take a look at following example.

ALTER TABLE `table_name` AUTO_INCREMENT=1

Example

ALTER TABLE `id_estudiantes` AUTO_INCREMENT=1

No hay comentarios:

Publicar un comentario


Entradas populares