MySQL Forums
Forum List  »  Quality Assurance

Re: Where clause doesn't work! Is this a bug?
Posted by: Peter Brawley
Date: January 21, 2018 11:13AM

Not a bug. SQL engines process the Where clause before Select expressions, so can't see Select expression aliases. Use Having().

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Where clause doesn't work! Is this a bug?
738
January 21, 2018 11:13AM


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.