日期:2014-05-18 浏览次数:20691 次
select * from ( select ROW_NUMBER() over(order by id )rn,* from tb )aa where RIGHT(rn,1)=1
------解决方案--------------------
select * from ( select row_number() over(order by getdate()) as pg,* from d_order ) tab where right(convert(nvarchar(5),pg),1)='1'