两者之间的性能(在 mysql 中)是否存在差异
Select * from Table1 T1
Inner Join Table2 T2 On T1.ID = T2.ID
和
Select * from Table1 T1, Table2 T2
Where T1.ID = T2.ID
?
最佳答案
从问题 44917 中接受的答案中提取:
Performance wise, they are exactly the same (at least in SQL Server) but be aware that they are deprecating the implicit outer join syntax.
在 MySql 中结果是一样的。
我个人会坚持明确地加入表格...这是“社会可接受的”方式。
关于MySQL:内部连接与 Where,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5273942/