left join on
摘要:问题:select * from A left join f on e.cust=f.account_idwhere f.status='0'与select * from A left join fon e.cust=f.account_id and f.status='0'的区别在做外连查询的时候ON里面的条件是在外连执行之前筛选的的where后的查询条件在外联之后执行上面哪个是左联后!再选出f.status='0'的,等于在两个表连接 了以后 再去 做过滤WHERE哪个说白了就是连主表都砍掉的, 结果集里只存在f.status='0&
阅读全文
posted @
2014-02-28 17:00
jameshappy
阅读(235)
推荐(0)