Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Composite primary keys
Message
De
01/12/2004 10:57:10
 
 
À
01/12/2004 10:43:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00966059
Message ID:
00966112
Vues:
8
>On the other hand, relationships between tables will be a lot simpler if you store the Primary key in a single field. For example, let's say you want to have a "composite" key, one part a number of the branch office, another a sequential number, generated by a function, SerialNumber(table_name).

Ah yes, I see now, to establish the foreign keys you will set indexes to both parts of your unique field. It seems an almost equivalent solution then.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform