Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing parametrized view on the fly (find form)
Message
 
À
19/04/2000 14:35:30
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00361044
Message ID:
00363242
Vues:
13
Using an IIF is gonna degrade your performance on the query. If you're trying to find any and all strings you might want to choose something like the following:

SELECT Providers.iid, Providers.lname, ;
FROM rac!providers;
WHERE UPPER(Providers.lname) LIKE UPPER(?("%"+vp_lname+"%"))

This query will display all records that contain the string.

This way you keep with standards required by ANSI SQL if you ever decide to upsize.

A better way of doing this is to include the table and a parameterized view in a DBC and that works alot better, also.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform