Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore optimization - index composed of 2 fields
Message
De
07/01/2009 09:14:26
 
 
À
07/01/2009 09:08:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01371601
Message ID:
01371672
Vues:
18
>Thanks everybody for your answers !!
>
>And for the problem of ENGINEBEHAVIOR, I have made some tests. If I create a table under VFP9 with an index, I have a "full" Rushmore optimization level (with SET ENGINEBEHAVIOR 90). The same table created with a prior version of VFP gives me a "none" Rushmore optimization level. I have to set ENGINEBEHAVIOR to 80.
>A bit strange...
>

LIKE is optimized on VFP9 only.

>>>>Hello,
>>>>
>>>>I have a table with some fields including LNAME and FNAME (Lastname/Firstname).
>>>>One index on LNAME+FNAME
>>>>
>>>>I want to make several requests :
>>>>- only lnames beginning with... (SELECT * FROM t1 WHERE LNAME="A")
>>>>- both lnames and fnames begining with..(SELECT * FROM t1 WHERE LNAME="A" AND FNAME="B")
>>>>
>>>
>>>For your second query, you could use something like:
>>>
>>>WHERE LNAME+FNAME = PADR("A", LEN(LNAME)) + "B"
>>
>>Tamar,
>>
>>It's not going to work because spaces you're adding will never match actual letters in the last name.
>>Following will work
>>
>>WHERE LNAME+FNAME LIKE PADR("A", LEN(LNAME), "_")) + "B%"
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform