开发者

Performance diference of SQL select statements [duplicate]

开发者 https://www.devze.com 2023-03-06 12:20 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: WHERE clause better execute before IN and JOIN or after
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

WHERE clause better execute before IN and JOIN or after

Hello,

someone told me there is a performance difference for SQL Server queries when you use implicit vs. explict join notation.

What I mean is: does

SELECT *
  FROM employee 
INNER JOIN department
    ON employee.DepartmentID = department.DepartmentID;

give better performance than

SELECT * 
FROM   employee, department 
WHERE  employee.Dep开发者_如何转开发artmentID = department.DepartmentID

?


If you wish to satisfy yourself at the expense / execution time taken per approach then simply run the query in the Sql Server Management Studio and select the "include actual execution plan" to review the execution per query.

0

精彩评论

暂无评论...
验证码 换一张
取 消