MySQL Forums
Forum List  »  Newbie

Re: WHERE shorthand?
Posted by: Felix Geerinckx
Date: August 10, 2005 01:58PM

peter michaux wrote:

> Is there a shorthand for
>
> WHERE a=1 AND a=2;

There is no need to execute a query with this WHERE clause, as it is guaranteed to return an empty set, since a cannot be equal to 1 *and* 2 in the same record.

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
August 10, 2005 01:49PM
Re: WHERE shorthand?
August 10, 2005 01:58PM
August 10, 2005 02:35PM
August 10, 2005 02:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.