程晓晖

博客园 首页 新随笔 联系 订阅 管理

2014年3月17日 #

摘要: SELECT * FROM test1 as t1 left join test2 as t2 on t1.ida=t2.aid --and t2.bid>2执行结果1 1 1 51 1 1 62 2 2 22 2 2 33 3 NULL NULL4 4 NULL NULL5 5 NULL NULLSELECT * FROM test1 as t1 left join test2 as t2 on t1.ida=t2.aid and t2.bid>21 1 1 51 1 1 62 2 2 33 3 NULL NULL4 4 NULL NULL5 5 NULL NULL即left j 阅读全文
posted @ 2014-03-17 10:23 fumen 阅读(2236) 评论(0) 推荐(0) 编辑