mysql的left jion:就是left outer join(right join同理),jionouter

來源:互聯網
上載者:User

mysql的left jion:就是left outer join(right join同理),jionouter

左外串連:

A left jion B on A.id=B.id 就是A表資料不動,將B表裡面能和A對應上的資料補充到A表資料後

而右外串連:

rignt jion 則是將A補充到B,B不動,儲存全部。


left jion就是left outer join,是簡寫。

例子:

select *
from app_id_gx7 LEFT OUTER JOIN ad_network_app 
on app_id_gx7.app_id = ad_network_app.app_id
where ad_network_app.ad_network_id=5

測試了有無OUTER效果一樣。




相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.