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 TugboatEng on being selected by the Eng-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
Joined
Jul 22, 2006
Messages
1
Location
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?
 
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.

Part and Inventory Search

Sponsor

Back
Top