Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The easy way to form a primary key
Message
 
 
À
10/08/2001 16:16:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00541152
Message ID:
00542523
Vues:
24
>Hi Nadya
>
>Yes the key would be +/-16 chars. However, getting the harddisk serial number is a standard API call. Someone else has already given the code in another thread. The key could also be shortened in various ways. I just thought it was quite easy and removes the need to check the table (any table) for duplicates.


Do you know the thread number? I believe, the problem was discussed here, but I don't remember details.

Well, if luxury of 16 chars for PK is allowed, it's a valid approach, I guess. Hilmar will have a FAQ here soon. His tests indicated, what character PK work faster than Integer. I didn't run the similar tests, but it would be interesting to try to compare Integer vs. Character PK in speed.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform