select * from table a, table b where a.aid = b.bid and aid >100table
这样链接,若是a有数据,b没有数据, a.aid = b.bid对不上号的时候,就是null,数据不会搜索出来。select
select * from table a left join table b on a.aid = b.bid where and aid > 100;搜索
这样链接,若是a有数据,b没有数据, a.aid = b.bid对不上号的时候,会搜索出来数,只是b字段都是null而已。数据