Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Composite primary keys
Message
From
01/12/2004 10:57:10
 
 
To
01/12/2004 10:43:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00966059
Message ID:
00966112
Views:
10
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform