您的位置:首页 > 博客中心 > 数据库 >

oracle中表的左右连接

时间:2022-03-14 04:22

select tp.technic_product_code,

       tp.technic_product_name,

       mp.marketproduct_code,

       mp.marketproduct_name

  from marketproduct_info mp, technic_product_info tp

 where mp.id_technic_product_info = tp.id_technic_product_info(+)


1)+写在那个表上,表示这个表允许为空,

  +写在右边,表示左连接,以左表为主;

  +写在左边,表示右连接,以右表为主;


本文出自 “” 博客,请务必保留此出处

热门排行

今日推荐

热门手游