Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Searching for data with *

Status
Not open for further replies.

fromb

Computer
Jul 22, 2006
1
0
0
ZA
I use Delphi 5 and Absolute database and am looking for a way to search for data in the database by using * e.g. if I’m looking for software to use *ware to search. I suppose it would be possible through sql but I have no knowledge of sql. Can someone please help?
 
Replies continue below

Recommended for you

In SQL the wildcard character is %. If it is used, the LIKE operator has to be used instead of =. Supposing you wish to look in a table called wtbl for words with ware in it.
Code:
SELECT * FROM wtbl WHERE word LIKE '%ware%'
 
Status
Not open for further replies.
Back
Top