MySQL Forums
Forum List  »  Italian

gestione indici autoincrement
Posted by: massimo tecnico
Date: February 07, 2014 11:32AM

Ciao a tutti,

ho una tabella ricevute con motore MyISAM, con una chiave con piu campi(anno,cliente,idricevuta) auto incement
Quando aggiungo un campo in automatico mi leggo idricevuta รจ questa diventa in numero della ricevuta.


Ma se elimino dei campi vorrei che i successivi record inseriti riprendessero dai campi non usati.
un esempio
id cliente anno
1 aaaa 2014 ...
2 aaaa 2014 ...
1 bbbb 2014 ...
2 bbbb 2014
3 bbbb 2014
se cancello il record 2 aaaa 2014 e inserisco un due nuovi campo record vorrei avere:
1 aaaa 2014
2 aaaa 2014 new
1 bbbb 2014
2 bbbb 2014
3 bbbb 2014
3 aaaa 2014 new

secondo voi si puo fare?

Options: ReplyQuote


Subject
Views
Written By
Posted
gestione indici autoincrement
1855
February 07, 2014 11:32AM


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.