可能重複:
which query is better and efficient - mysql這些MySQL SELECT查詢是否表示不同的內部連接?
有什麼區別,如果有的話,這兩個(MySQL的)之間的SELECT查詢?
SELECT name, salary
FROM employee, info
WHERE employee.id = info.id;
SELECT e.name AS name, i.salary AS salary
FROM employee AS e
INNER JOIN info AS i
ON e.id = i.id;
兩者表示(在同一?)內加入對錶employee
和info
。
您可以找到關於此主題的許多討論:http://stackoverflow.com/questions/3138742/which-query-is-better-and-efficient-mysql/3138863 –
大!謝謝 – waanders
是重複的,我也發現這個:http://stackoverflow.com/questions/1018822/inner-join-versus-where-clause-any-difference。對不起 – waanders