Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing on 2+ Integers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00133766
Message ID:
00134186
Vues:
17
>>Hi All,
>>
>>Ok, I've got a link table that links two, two part primary keys, together. And sense Seek is faster than locate, I need to index on the four part key. How do you build an index on four integers?
>>
>>Thanks
>
>Hi Samuel,
>
>Concatenate the integers using BINTOC(). For example:
>INDEX ON BINTOC(INTFLD1) + BINTOC(INTFLD2) + BINTOC(INTFLD3) +;
>  BINTOC(INTFLD4)
>* To seek
>SEEK BINTOC(int1) + BINTOC(int2) + BINTOC(int3) + BINTOC(int4)
>The index will be smaller, with less code. Take a look at the help file for some additional ideas.
>
>hth,

Thanks Much to All.
If they have you asking the wrong questions,
they don't have to worry about the answers.
-proverbs for paranoids #3
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform