Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore: Não entendo mais nada...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00642983
Message ID:
00643056
Vues:
10
>Estou executando a seguinte instrução:
>
>Select Sum(B.Field3 - B.Field4);
>   From B Left Outer Join A On B.Field1 = A.Field1;
>   Where B.Field2 = "SOMETHING" .and.;
>         B.Field3 > B.Field4 .and.;
>         A.Field2 = "YES" .and.;
>   Into Cursor MyTest
>
>
>1) Se eu tenho índices nos campos A.Field1 e A.Field2, esta instrução leva 10,5 segundos para ser executada.
>
>2) Se eu excluir os índices, a mesma instrução leva 2,5 segundos...


Qual é o resutado de SYS(3054) si vc tem indices no A.Field1, A.Field2, B.Field1, B.Field2, B.Field3, B.Field4?
É si vc tem SET COLLATE TO MACHINE?
SET DELETED?


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform