Aiuto Query mysql autoincrement
Posted by:
ale rossi
Date: June 07, 2016 03:35PM
Buongiorno a tutti,
Avrei bisogno un aiuto per un mia tabella di un database.
Esso è formato da 8 colonne, una delle quali l'ho aggiunta con questa query:
ALTER TABLE `table` ADD `id` INT NOT NULL AUTO_INCREMENT AFTER `colonnapreced`, ADD PRIMARY KEY (`id`);
Il risultato è stato lo stesso database con la colonna univoca.
Supponiamo poi che io voglia cancellare una riga della mia tabella.
Che query devo lanciare per aggiornare tutti gli id?
Subject
Views
Written By
Posted
Aiuto Query mysql autoincrement
1231
June 07, 2016 03:35PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.