Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any value in unique index option?
Message
 
À
27/08/1998 14:08:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00130650
Message ID:
00130655
Vues:
26
>Does anyone know of a valid reason for using the Unique index type? If there are duplicates, you should use Reqular and if they are truly key fields then Primary or Candidate should be used. (IMNSHO)
>
>Is it there for backward compatibility? There's nothing I've found to that effect.
>
>Thanks,

Rock,

Unique indexes should only be used as temporary indexes. For example, assume you ahve a customer table with 50,000 records in it and you want a list of states that you have custoemrs in, you can;

USE Customer
INDEX ON State TAG Temp UNIQUE
* Print your states listing
DELETE TAG Temp
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform