join等价于inner join内连接,是返回两个表中都有的符合条件的行。

left join左连接,是返回左表中所有的行及右表中符合条件的行。(左表为主表)

right join右连接,是返回右表中所有的行及左表中符合条件的行。(右表为主表)

full join全连接,是返回左表中所有的行及右表中所有的行,并按条件连接。

通常情况下,left join肯定比inner join返回的行数多。

posted on 2018-11-01 18:17  donghongbo  阅读(514)  评论(0编辑  收藏  举报