For example, if I had the following query:
select * from msgs as e left outer join msgs as m on e.id = m.id where m.property
what exactly happens in the where part of the query?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the value of
m.propertyevaluates to true when interpreted as a boolean expression, the row gets selected.See http://www.sqlite.org/lang_select.html#whereclause
It says
For boolean expression it says
So it should evaluate
m.propertyand cast it to a boolean, and keep the rows for which it is true.