MySQL Join clause vs WHERE clause
问题 What's the difference in a clause done the two following ways? SELECT * FROM table1 INNER JOIN table2 ON ( table2.col1 = table1.col2 AND table2.member_id = 4 ) I've compared them both with basic queries and EXPLAIN EXTENDED and don't see a difference. I'm wondering if someone here has discovered a difference in a more complex/processing intensive envornment. SELECT * FROM table1 INNER JOIN table2 ON ( table2.col1 = table1.col2 ) WHERE table2.member_id = 4 回答1: With an INNER join the two