SQLServer2005 row_number() 分页存储过程
来源:互联网 发布:数据库规范化理论 作用 编辑:程序博客网 时间:2024/04/29 19:58
create procedure [dbo].[GetProductByCategoryId]( @CategoryID int, @PageIndex int = 0, @PageSize int = 20, @TotalRecords int output)asbegin declare @ResultTable table( RowIndex int, ProductID int, ProductName nvarchar(50), CategoryID int, Unit nvarchar(10), UnitPrice money, Quantity int); insert into @ResultTableselect row_number() over (order by ProductID asc) as RowIndex, p.ProductID, p.ProductName, p.CategoryID, p.Unit, p.UnitPrice, p.Quantityfrom Products as pwhere CategoryID = @CategoryID; select @TotalRecords = count(*) from @ResultTable; select *from @ResultTablewhere RowIndex > (@PageSize * @PageIndex) and RowIndex <= (@PageSize * (@PageIndex+1)); end;
- SQLServer2005 row_number() 分页存储过程
- SqlServer2005分页存储过程
- SqlServer2005存储过程分页
- SqlServer2005 分页存储过程
- SQLServer2005分页存储过程
- ROW_NUMBER() 真分页 存储过程
- SQL存储过程 row_number分页
- Asp+Sqlserver2005 分页存储过程
- sqlserver2005万能分页存储过程
- SQL SERVER 2005 ROW_NUMBER() 分页存储过程
- SQL Server 2005 分页存储过程 row_number()
- 分页存储过程(使用row_number()) Sql Server
- 使用ROW_NUMBER()的分页存储过程
- 使用Row_Number的分页存储过程
- 最新SqlServer2005分页存储过程备份
- SqlServer2005中利用存储过程分页
- row_number()分页和存储过程分页性能比较
- sqlserver2005 的分页测试 附上 分页存储过程
- 2012欧洲杯场上嵌入式技术精彩直播
- iphone ipa图片资源提取
- Java与编码问题串讲之二--如何理解java采用Unicode编码
- VC 中自定义资源 FindResource\LoadResource\LockResource 简介使用
- PLSQL中显示游标使用的4个步骤
- SQLServer2005 row_number() 分页存储过程
- H.264RTP封包原理
- ALV台账统计表
- HTML Help WorkShop制作chm图解
- Linux设备驱动程序总述
- LinQ简单的用例
- C语言中指针类型的用途总结
- 设置vim C/C++语法高亮显示和自动缩进
- 开源数据库SQLite学习手册之入门篇