千家信息网

oracle中表的左右连接

发表于:2025-02-02 作者:千家信息网编辑
千家信息网最后更新 2025年02月02日,select tp.technic_product_code,tp.technic_product_name,mp.marketproduct_code,mp.marketproduct_namefr
千家信息网最后更新 2025年02月02日oracle中表的左右连接

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)+写在那个表上,表示这个表允许为空,

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

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


0