On 11 Nov 2002, at 20:03, James Dyer wrote: > SELECT * FROM foo WHERE id2=1 AND id2=2 (for example), > > I just get an empty set returned. An explain on the query gives an 'Impossible WHERE' > message.
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. [Filter fodder: SQL] -- Keith C. Ivey <[EMAIL PROTECTED]> Tobacco Documents Online http://tobaccodocuments.org --------------------------------------------------------------------- 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