View Single Post
  #12 (permalink)  
Old 08-24-2007, 04:39 PM
marms767 marms767 is offline
WebProWorld New Member
 

Join Date: Dec 2005
Posts: 5
marms767 RepRank 0
Default Re: MySQL Multiple Select Question

Yes, you use an IN statement for that

select * from Table2 where eid in ('123','124','125')

I think you mentioned an IP address could be the eid? If that is the case and these are the first 3 digits of each IP Address you are looking to match up you would have to only look at the first 3 characters of the "eid" and then compair it to the list given.

select * from Table2 where left(eid,3) in ('123','124','125')
__________________
MArms
self-help book | used cell phones | cell phone donation
Reply With Quote