Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Filter to
Message
De
07/03/2003 17:25:59
 
 
À
07/03/2003 16:59:14
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00762585
Message ID:
00763075
Vues:
17
Mike,

>
>LOCATE FOR FIELD1=SOMETHING AND FIELD2=SOMETHING

Sometime (not always) we can do:
set near on
seek something
scan rest while FIELD1=SOMETHING for FIELD2=SOMETHING
endscan
>
>You'll need three index tags to do what you suggest. The best practice is to use SQL and have the two indexes and not to grab more data than necessary.

Deal.. Completely correct !! :)

Just an addedum.. BINARY SEARCH (by index) will be many times faster than SEQUENTIAL SEARCH.. So, there is some moments that SQL will be the "wild thing".. (If we don´t have the properly key for that search)

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform