mysql - sql中两个语句的区别
伊谢尔伦
伊谢尔伦 2017-04-17 14:44:34
0
1
721

select * from a inner join b on a.id = b.aidselect * from a,b where a.id = b.aid效果一样吗?如果一样的话,用哪一个效果更好?为什么?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
洪涛

select * from a inner join b on a.id = b.id This is an inner join
select * from a, b where a.id=b.id This is an equijoin

The effect of inner join and equivalent join is the same, and the execution efficiency is the same

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!