Please read SQL documentation... there is a "matches" clause, which should suffice for 
your
needs.

Constantin
---
Jeetandra Mahtani wrote:

> Hello,
> I have a table in a db that stores the names of several companies. Now on a form, a 
>user
> can enter the name of the company partially or completely, and the results should 
>display
> accordingly. For example, I have two records "abc co" and "ab co". If a user enters 
>only
> "ab", both the records should be retrieved, but if "abc" or "abc co" is entered, 
>then only
> the first record is retrieved. Any idea on how to implement this query ? The company 
>names
> are stored in a field of 100 character length.
> Thanks,
> JM
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to