mysql, LEFT OUTER JOIN 与 LEFT JOIN,RIGHT OUTER JOIN 与RIGHT JOIN ,FULL OUTER JOIN 与 FULL JOIN区别与联系

关于SQL中的JOIN操作,LEFT JOIN和LEFT OUTER JOIN,RIGHT JOIN和RIGHT OUTER JOIN以及FULL JOIN的概念有时会引起混淆。LEFT JOIN(或LEFT OUTER JOIN)确保返回左表的所有记录,即使在右表中没有匹配项。RIGHT JOIN(或RIGHT OUTER JOIN)则保留右表的所有记录。FULL JOIN则在左右两表中只要有匹配就会返回记录。而SELF JOIN用于表自身之间的连接,需要使用别名来区分。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I have seen joins called LEFT OUTER JOIN or RIGHT OUTER JOIN. In some places I have seen LEFT JOIN or RIGHT JOIN. I am confused by this.

I posted a question 2 days ago, but I am unable to understand the links the solutions provide.

Are these types of joins both the same, or is there some difference between the two?

answer1:

There are no difference between both. Refer visual represenation of joins

answer2:

The first link they quoted gives you:

INNER JOI

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

二十六画生的博客

你的鼓励是我创作最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值