在内链接(inner join)中使用没有区别。 可是在外链接(left join和right join)中使用的话,on条件使用后,仍是会返回主表的记录。 where条件是对生成的结果集进行过滤。测试