标签:
drop procedure Emp_fy
create procedure Emp_fy
(
@rows int,
@page int,
@tabName varchar(20)
)
as
declare @str varchar(2000)
set @str=‘select top ‘+STR(@rows)+‘ * from
(select ROW_NUMBER() over(order by Emp_Id)as rownum,* from ‘+@tabName+‘)
as A where rownum >‘+STR(@rows*(@page-1))+‘‘
exec (@str)
若需要源码可以联系我www.jiangyong.net.cn
标签:
原文地址:http://www.cnblogs.com/jiangyongyawen/p/4241038.html