日期:2014-05-18 浏览次数:20373 次
select top 4 * from NoverlName where Sid=2 order by Recoms desc
select * from( select row_number()over(partition by Sid order by getdate()) as bianhao, * from tbl) a where bianhao<=4 and Sid in(2,3,4,5)