The information in this article applies to:
SUMMARY
This article describes how to search a database using the LIKE parameter in
a Structured Query Language (SQL) statement in either the Internet Database
Connector (IDC) Wizard or the Database Region Wizard of FrontPage.
Q180405 FP98: Sample ASP Wizard Available for Download MORE INFORMATION
When used in a search, the LIKE parameter generates a result set based on a
minimum amount of information typed into the form field of a HyperText
Markup Language (HTML) form. For example, if you type "mic" (without the
quotation marks) in the form field, the results may include Microsoft,
microphone, microwave, and so forth.
where <Table Name> is the name of a table in the database, <Database
Field> is a field in that table, and <HTML Field> is the name of an HTML
form field on an HTML document (usually a text box).
The extra percentage signs around the HTML form field name act as wild cards so that the LIKE string can match multiple records. For example, if you entered this SQL code
And type volcano in the form field, all
records that contain volcano.com in the email field are returned.
NOTE: This example works with the Volcano.mdb file that is included with the ASP sample Web. For additional information please see the following article in the Microsoft Knowledge Base: Q180405 FP98: Sample ASP Wizard Available for DownloadIf you use this query and the form field is blank when you submit the form, all records in the database will be returned. However, you can require that a value be entered before the form is submitted by using form field validation. Additional query words: 98 SQL ASP IDC Database LIKE
Keywords : fpscript |
Last Reviewed: July 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |