Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set filter to not empty()
Message
De
02/01/2014 21:53:05
 
 
À
02/01/2014 11:33:15
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01591204
Message ID:
01591278
Vues:
74
first time I see you giving out dangerous advice!

lcTab = CHR(9)
lcSpc = CHR(32)
? lcTab=lcSpc
? EMPTY(lcTab)=EMPTY(lcSpc)

and yes, if I KNOW the data, I use your approach as well, but have set up a mental checkpoint for myself ;-)

regards

thomas

>EMPTY() is not Rushmore optimizable unless you add an INDEX ON EMPTY(myfield). That is a non-discriminating index. If you already have another index on myfield like this... INDEX ON UPPER(myfield) TAG xmyfield
>
>then the following will work.
>
>lcSpaces=space(len(myfield))
>SET FILTER TO UPPER(myfield) # m.lcSpaces
>
>You won't need a new index and it will optimize.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform