Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql auto increment after delete

set @autoid :=0; 
update Table_Name set AutoIncremented_Column = @autoid := (@autoid+1);
alter table Table_Name Auto_Increment = 1;

@Zenonymous
 
PREVIOUS NEXT
Tagged: #mysql #auto #increment #delete
ADD COMMENT
Topic
Name
1+6 =