Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Performance issues.
Message
De
28/02/2002 14:55:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00626629
Message ID:
00626634
Vues:
22
>I am having a problem selecting data for a table. It takes too long.
>
>The table has about 60,000 records in it. Is there a way to speed up the SQL Select statement without using SQL server?
>
>This is the syntax...
>
>SELECT * FROM &_table WHERE ALLT(LCTRANSNUM) == ALLT(MATRELEASE) AND LCCURRUSER == ALLT(NAME) ;
>INTO CURSOR DATASET
>
>
>Adam


Adam,

Supposing you have an index on MATRELEASE and NAME

try
LCTRANSNUM = padr(LCTRANSNUM, tothefieldlength)
LCTRANSNUM = padr(LCCURRUSER, tothefieldlength )

SELECT * ;
    FROM &_table ;
    INTO CURSOR DATASET ;
    WHERE ( MATRELEASE == LCTRANSNUM ) ;
     AND  ( NAME == LCCURRUSER )
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform