sqlserver2005查询语句的性能问题
在网上查询有关查询语句的性能问题,真是众说纷纭啊!我有以下几个问题:
1.关于分页的我们用的是
SELECT * FROM (SELECT TOP 100 *, ROW_NUMBER() OVER (order by id) AS Supesoft_RowNo FROM BaseArchives where isdelete=0 and status<>51 ) AS TempSupesoftPageTable WHERE TempSupesoftPageTable.Supesoft_RowNo > 90
select b.* from BaseArchives b,E_Fence e where b.E_Fence=e.ID and b.isdelete=0 and b.status<>51 order by b.id desc
select b.* from BaseArchives b where exists(select e.ID from E_Fence e where b.E_Fence=e.ID) and b.isdelete=0 and b.status<>51 order by b.id desc
select b.*,e.* from BaseArchives b inner join E_Fence e on b.E_Fence=e.ID where b.isdelete=0 and b.status<>51 order by b.id desc