SET @num := 0;
UPDATE nombre_tabla SET campo_id = @num := (@num+1);
ALTER TABLE nombre_tabla AUTO_INCREMENT =1;
Resetea los valores de tu campo llave...
Resets the values of your key field ...
Resets the values of your key field ...
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.