Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01547863
Message ID:
01547884
Vues:
54
>>>>
>>>>select * from myTable where nNumber IN (Fld1, Fld2, Fld3).
>>>>
>>>>
>>>>They will behave the same as your original code, just a shorter code.
>>>>
>>>>There is no faster approach for this problem.
>>>
>>>Thank you.
>>
>>You're welcome.
>
>Is it optimizable?

It is exactly the same as original Fld1 = @nNumber or Fld2 = @nNumber or ...

So, it is optimizable if we have indexes on each of these columns.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform