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 the Database Results Wizard of FrontPage.
MORE INFORMATIONWhen 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 in the form field, the results may include Microsoft, microphone, microwave, and so forth. Method 1: Use the Wizard to Specify What You Want to Compare
NOTE: If you want FrontPage to create a form using this statement, click Add Search Form on step 5 of the database results wizard. Method 2: Use Custom SQL CodeTo use the LIKE parameter in an SQL statement in FrontPage, start the Database Results Wizard and follow these steps:
And type London in the form field, all
records that contain London in the city field are returned.
NOTE: This example works with the Northwind sample database file that can be specified in Step one of the Database Results Wizard. NOTE: If 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 front page
Keywords : kbdta fpscript |
Last Reviewed: December 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |