“SQL Server reinicie automáticamente incremento” Código de respuesta

SQL RESET AUTOCRENME

ALTER TABLE tmp AUTO_INCREMENT = 3;
Fair Finch

SQL Server reinicie automáticamente incremento

DBCC CHECKIDENT (mytable, RESEED, 0)
Relieved Rat

Restablecer el incremento automático de SQL

ALTER TABLE tablename AUTO_INCREMENT = 1
Powerful Penguin

SQL RESET AUTOCRENME

SET  @num := 0;

UPDATE your_table SET id = @num := (@num+1);

ALTER TABLE your_table AUTO_INCREMENT =1;
Important Ibis

Respuestas similares a “SQL Server reinicie automáticamente incremento”

Preguntas similares a “SQL Server reinicie automáticamente incremento”

Más respuestas relacionadas con “SQL Server reinicie automáticamente incremento” en Sql

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código