Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore
Message
De
14/06/2000 08:27:29
 
 
À
13/06/2000 16:42:03
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00380015
Message ID:
00380140
Vues:
17
>and an index tag using the expression
>AGENTCODE + STR(CTRL_NUM,6)
>
>
>(1) Are there any settings which would make a query such as
>SELECT * FROM myTable ;
> WHERE agentcode = "XXXXXX"
>
>be optimizable??
>

In addition to what Barbara said (adding a tag for AgentCode), you can also optimize this query by changing the WHERE clause to:

WHERE AgentCode + STR(CTRL_NUM,6) = "XXXXX"

Make sure SET ANSI is OFF, if you do it this way.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform