我必须用两种不同的方式编写 sql 查询,两者都给出相同的输出。但是还是不明白
两个查询有什么不同?
哪一个访问速度快?
哪个更推荐?
查询 #1
SELECT PageControlDet.PageId, PageMaster.PageName, PageMaster.PageURL,
PageMaster.PageTitle, PageMaster.PageDescription
FROM AgentRoleAccessDet
INNER JOIN PageControlDet ON AgentRoleAccessDet.ControlId = PageControlDet.ControlId
INNER JOIN PageMaster ON PageControlDet.PageId = PageMaster.PageId
和
查询 #2
SELECT PageControlDet.PageId, PageMaster.PageName, PageMaster.PageURL,
PageMaster.PageTitle, PageMaster.PageDescription
FROM AgentRoleAccessDet, PageControlDet, PageMaster
WHERE AgentRoleAccessDet.ControlId = PageControlDet.ControlId and
PageControlDet.PageId = PageMaster.PageId
ORDER BY PageControlDet.PageId