可能重复:
WHERE clause better execute before IN and JOIN or after
您好,
有人告诉我,当您使用隐式与显式连接表示法时,SQL Server查询会有性能差异。
我的意思是:
SELECT *
FROM employee
INNER JOIN department
ON employee.DepartmentID = department.DepartmentID;
提供比
更好的表现SELECT *
FROM employee, department
WHERE employee.DepartmentID = department.DepartmentID
答案 0 :(得分:0)
如果您希望按照每种方法花费/执行时间来满足自己,那么只需在Sql Server Management Studio中运行查询并选择“包含实际执行计划”以查看每个查询的执行情况。