The information in this article applies to:
SUMMARY
To broaden the selections of a structured query language (SQL) statement,
two wildcard characters, the percent sign (%) and the underscore (_), can
be used.
MORE INFORMATIONThe following SELECT statement returns all the records from the CLIENTS.DBF file that contain an "N" as the first character in the STATE field. The SELECT statement lists the records from New York and New Jersey in a Browse window.
The following SELECT statement lists all the records that have an "X" or a
"Y" as the last character in the STATE field. The output will include
records from New York and Texas.
The following SELECT statement uses the percent sign and underscore to
return all the records that have a CLIENT_ID number starting with "C" and
that have a state abbreviation ending in "X". Note that the percent sign
allows any string of characters to follow the "C". Conversely, the
underscore allows the substitution of only a single character.
To do a string search similar to the one performed by the $ function, use a
statement like:
This SELECT statement will find all companies with names that contain the
letter "x".
REFERENCES
"Developer's Guide," version 2.0, page D7-9 Additional query words: VFoxWin FoxDos FoxWin wild card select kbvfp300 kbvfp500 kbvfp600 search
Keywords : FxprgSql |
Last Reviewed: August 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |