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!

IN and LIKE command combination, Possible?

Status
Not open for further replies.

hengsin

Technical User
Mar 26, 2003
128
0
0
MY
In the WHERE clause....

.... where area = "india" or area "china"

can be equivalent to:

where area IN("india","china").

What if:
where area like "a*" or area like "b*"

How to put the Like and IN command together?



 
There is no equivivalent of in for like.

Use ' instead of " as string delimiter in SQL.
 
WHERE LEFT(area,1) IN ("a","b")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top