How to use wildcard characters in the SQL-SELECT statement in Visual FoxPro (98434)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q98434 SUMMARY
To broaden the selections of a structured query language (SQL-SELECT) statement,
two wildcard characters, the percent sign (%) and the underscore (_), can
be used.
The percent sign is analogous to the asterisk (*) wildcard character used
with MS-DOS. The percent sign allows for the substitution of one or more
characters in a field.
The underscore is similar to the MS-DOS wildcard question mark
character. The underscore allows for the substitution of a single character
in an expression. Three examples showing the use of these characters in SQL-SELECT statements are provided below. The examples use the Customer.dbf file that
is included with Microsoft Visual FoxPro in the Home(2)+data folder.
REFERENCESFor additional information, see the Visual FoxPro Help files. Search for "SELECT - SQL."
Modification Type: | Major | Last Reviewed: | 3/17/2005 |
---|
Keywords: | KB98434 |
---|
|