Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wild Cards for paramaterized views
Message
De
15/12/2000 11:41:28
 
 
À
15/12/2000 11:26:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00453991
Message ID:
00454007
Vues:
33
>First question, Can you use wildcards in parameterized views and if so, what are the wildcards for the different data types?
>
>Second, How much is performance degraded if I have 15+ paramaters in a view and am using wildcards on all but one or two parameters? I'm trying to do a Query by form for one particular form.
>
>Any thought or pointers to articles on this will be much appreciated!

Wildcards are done by using LIKE in the select statement -- (hint, this means you shouldn't use the VFP view designer for your views - eView works very nicely for this.)

The wildcards for the LIKE clause in a SELECT are "%" for all characters and "_" for a single character - this is ANSI-SQL standard, so it works in all databases.

LIKE only compares character strings. For non-character fields, like date or numeric, some other comparison should be used - e.g. instead of finding dates like "12/%/2000", use where month(datefield)=?vpnMonth and year(datefield)=?vpnYear

HTH
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform