MySQL Forums
Forum List  »  Italian

chiave primaria composta
Posted by: davide tombari
Date: February 24, 2016 03:38AM

Ciao a tutti
ho una tabella chiamata Fattura con campi data e numero.
vorrei impostare come chiave primaria l'anno di tale data e il numero della fattura. una cosa di questo tipo :
PRIMARY KEY (data.YEAR, numero)
ho giĆ  fatto delle prove e non ci sono riuscito, mi chiedevo se fosse possibile esprimere un concetto del genere senza scindere la data in 3 campi interi giorno mese anno.

Options: ReplyQuote


Subject
Views
Written By
Posted
chiave primaria composta
2659
February 24, 2016 03:38AM


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.