John Ragan wrote:

>>>>I have a select where I want to get ID 15 && id 25
>>>>
>>>>Can I do something like WHERE ID = 15,25
>>>>
>>>>Or do I have to do WHERE ID = 15 && ID = 25
>>>>    
>>>>
>>    
>>
You've got your boolean definitions wrong ... if you want two values, 
you want the rows where the ID is 15 or the row where ID is 25 ... after 
all, there is no row with ID equal to both 15 and 25 at the same time.

WHERE ID=15 OR ID=25 will work, as will WHERE ID IN (15,25)

PS .. Re: *!@#* reposting *!@#*spam filter *!@#* SQL !@# ...

-- 
Michael T. Babcock
C.T.O., FibreSpeed Ltd.
http://www.fibrespeed.net/~mbabcock



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to