Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary key
Message
De
18/10/2007 17:46:23
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
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01261997
Message ID:
01262008
Vues:
17
>How to create a primary or candidate KEY ?
>
>VFP help is not clear about this issue
>
>Moises

Primary keys are defined through indices (indexes).

In the table structure, for example, with MODIFY STRUCTURE, click on the field, and select an ascending index in the corresponding combobox. Then go to the "Index" section, and define the index as primary, or candidate.

You can also create an index directly in the "index" section. You may have to do this if an index doesn't exactly correspond to a field, but rather, is a combination of more than one field.

I suggest you also read my introductory article on primary keys, to learn about different strategies for creating primary keys. Universal Thread Magazine, May 2002.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform