日期:2014-05-17 浏览次数:20717 次
select A.ID id,A.ConcentratorAddress
concentratorAddress,A.MeterAddress meterAddress,A.userNo userNo,
A.ThinkTypename thinkTypename,A.ThinkFlag thinkFlag,a.UserName
userName,A.Sign sign,A.UploadData uploadData,A.OccurDate
occurDate,A.UploadDate uploadDate
from (select ROW_NUMBER() over(order by eau.OccurDate desc,eau.id) as rownum,
eau.id,eau.ConcentratorAddress,'' as MeterAddress,'' as userNo,
case when eau.ThinkTypename='1' then '已处理' else '未处理' end as
ThinkTypename,
eau.ThinkTypename as ThinkFlag,'' as UserName,eau.Sign,eau.UpLoadData ,eau.OccurDate,
eau.UpLoadDate
from egmActiveUpLoad eau where right(eau.Sign,7) = ',14,10,'
) A where rownum between $startNum$ and $endNum$
select top 50 * from
(select row_number()over(order by id)rownumber,* from pagetest)a
where rownumber>9900