select * from ContactInformation c where exists (select * from Department d where d.Id = c.DepartmentId )select * from ContactInformation c inner join Department d on c.DepartmentId = d.Id 这两个查询都给出了相同的输出,在性能上是明智的连接或existing哪一个更好?2 n$ k% Q: G& _1 J4 U4 ^5 u
编辑:-是否有联接使用alternet提高性能的方法:-在以上两个查询中,我需要来自部门和联系信息表的信息2 P' l, u3 ~% r' A9 f