create procedure GetRecordByPage
(
@TableName nvarchar(100), --表名
@PrimaryKey nvarchar(50), --主键
@Fields nvarchar(1000), --字段
@CurrentPage int, --当前页数
@PageSize int, --每页记录数
@Filter nvarchar(1000), --条件
@Sort nvarchar(100) , --排序
@Counts int=0 output, --记录条数
@PageCount int=1 output --查询结果分页后的总页数
)
as
set nocount on

declare @sc1 nvarchar(1000),@sc2 nvarchar(1000)
declare @iasc int,@idesc int,@itype tinyint
declare @st1 nvarchar(1000),@st2 nvarchar(1000),@st3 nvarchar(1000),@st4 nvarchar(1000),@ssql nvarchar(4000)
set @CurrentPage = @CurrentPage +1;

go
相关文章:
猜你喜欢
-
2021-12-22
-
2021-08-05
-
2022-12-23
-
2021-05-26
-
2021-12-04
相关资源
-
下载
2021-06-06
-
下载
2023-03-20
-
下载
2021-06-05