MySQL Forums
Forum List  »  Newbie

Re: SELECT 1 FROM DUAL WHERE 2 = '2asdfasdf' RETURNS 1. WHY?
Posted by: pablo pablo
Date: August 13, 2010 05:29AM

Hello Rajkumar. Thanks for your response.

I know how DUAL table works. I just tried to simplify my question as much as possible.

My question is, Why the comparision WHERE 2 = '2asdfa' returns true in all mysql queries?

Options: ReplyQuote


Subject
Written By
Posted
Re: SELECT 1 FROM DUAL WHERE 2 = '2asdfasdf' RETURNS 1. WHY?
August 13, 2010 05:29AM


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.