Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary and Candidate
Message
De
02/08/2001 10:47:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/08/2001 10:43:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00538812
Message ID:
00538824
Vues:
14
>>>Can anyone clear up the difference between primary and candidate indexes?
>
>>Both forbid you to make duplicate values. For practical purposes (in Visual FoxPro), you can use them interchangebly - in theory. ...
>
>
>THis is what I thought. I saw no real difference between the two.
>
>Thanks

Well, you can even create a relationship (one-to-many) using a candidate, instead of a primary, index.

But it helps to keep things organized.

BTW, the framework I use (Visual Extend, www.devigus.com) requires each table to have a primary key for certain functions, such as audit trail.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform