Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Like Command 1

Status
Not open for further replies.

WJProctor

Programmer
Jun 20, 2003
151
GB
Hi there, im writting a search facility on one on my programs, and i want the user to be able to search but not have to type on the full search value. I seem to think before ive used the like command, but its doesnt seem to work. Whats the actual syntax for this statement?

Hope someone can help

JP
 
The LIKE operator is used like this
Code:
   Where FieldName LIKE '%ABC%'
where '%' matches any characters (zero or more) and '_' matches a single character.
 
Thanks, thats really clear, cheers for your help.

JP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top