
3条回答 默认 最新
yicp123 2016-05-19 10:03关注select s.sn
from s inner join sc on s.s#=sc.s#
and exists (
select 1 from c where c.c#=sc.c#);在MySQL中,CROSS JOIN语法上等价于INNER JOIN (它们可以彼此代替。在标准SQL中,它们不等价。INNER JOIN结合ON子句使用;CROSS JOIN 用于其它地方)
参考自:
MySQL如何优化嵌套Join(一) http://www.data.5helpyou.com/article272.html
MySQL如何优化嵌套Join(二) http://www.data.5helpyou.com/article274.html本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报