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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search using LIKE doesn't work

Status
Not open for further replies.

koko

Programmer
Sep 30, 1999
1
0
0
US
I'm trying to build a simple application where a user can type a partial drug name into a single line edit control, and the entire drug name and code number will come up in a datawindow. However, it's not working. Here's my datawindow SELECT statement:<br>
<br>
SELECT
 
Sorry I couldn't read the select statement. But I think you may get away with the % which is a Oracle wildcard. Just guessing
 
Just place the % sign in from of the partial drug name and use LIKE in the where clause.<br>
<br>
WHERE drugname LIKE &quot;partial%&quot;<br>
OR<br>
WHERE drugname LIKE &quot;%partial%&quot;<br>
OR<br>
WHERE drugname LIKE &quot;%partial&quot;<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top