【mysql】left join on and 和 where的区别
摘要:
left join on andSELECT a.order_id ,b.id FROM way_order a LEFT JOIN way_order_product b ON a.order_id=b.order_id AND b.order_id >70返回a表中所有数据和符合and条件的b数据179 (NULL) 180 (NULL) 183 (NULL) 220 8 224 9SELECT a.order_id ,b.id FROM way_order a inner JOIN way_order_produ... 阅读全文
posted @ 2013-06-24 18:35 天地一连线_孤鸿挂飘渺 阅读(740) 评论(0) 推荐(0) 编辑