Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in view
Message
From
12/05/1999 06:25:47
 
 
To
12/05/1999 05:35:48
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00216702
Message ID:
00217695
Views:
20
>>>Last question... Which is the common way adopted by everybody...
>>>
>>
>>Vinod,
>>
>>There is not one single "best" way to do that. I usually have a surrogate primary key for each table, that is a key that bares no relation to the data
>>and ensure uniqness
>>
>>Arnon
>
>can u pls give me a example...

if for example you have a table of people
you can set a person's ID number as a primary key and that would be a natural key - you can however add an additional field a numerator that will be incremented without relation to the data itself and set that as primary key - this would be a surrogate key

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform