Keith C. Ivey wrote:
I've found that quite a few people I know misconstrue boolean values to mean the opposites of what they in fact do mean in queries as in "I want the record where ID is 1 and the record where it is 2" is not as written above, but in fact "WHERE ID2 IN (1, 2)" or "WHERE ID2 = 1 OR ID2 = 2". A logic course would fix most of these problems of course ...On 11 Nov 2002, at 20:03, James Dyer wrote:SELECT * FROM foo WHERE id2=1 AND id2=2 (for example),Because it's impossible for id2 to be both 1 and 2. What were you expecting? Did you mean "id1 = 1 AND id2 = 2"? If not, you need to explain what records you're trying to get.
I just get an empty set returned. An explain on the query gives an 'Impossible WHERE'
message.
--
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