在內鏈接(inner join)中使用沒有區別。 可是在外鏈接(left join和right join)中使用的話,on條件使用後,仍是會返回主表的記錄。 where條件是對生成的結果集進行過濾。測試