MySQL Forums
Forum List  »  Italian

Richiesta creazione codice univoco che diventi chiave primaria di altra tabella
Posted by: camillo carelli
Date: May 04, 2020 11:25AM

Ho la necessità di ottenere un codice univoco per un evento che succede in una determinata città, faccio un esempio
ID Città ISTAT
1 Milano 01885
2 Roma 19568
3 Napoli 25698

Inserendo in un'altra tabella un evento tipo

ID del Città
04/05/2020 Roma
03/05/2012 Milano
01/04/2020 Roma
ID della tabella di sopra sia un valore del tipo 151956801, per il secondo sia 150188501 e per l'ultimo sia 151956802 e così via, il 15 è un valore fisso, ringrazio anticipatamente chi vorrà aiutarmi

Options: ReplyQuote


Subject
Views
Written By
Posted
Richiesta creazione codice univoco che diventi chiave primaria di altra tabella
586
May 04, 2020 11:25AM


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.