Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wild Cards for paramaterized views
Message
From
15/12/2000 11:41:28
 
 
To
15/12/2000 11:26:11
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00453991
Message ID:
00454007
Views:
32
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform