摘要: 在实际的开发过程中,经常遇到存储过程分页,下面根据实际情况总结的几种方法:数据库名称:myTest1、思路:利用select top and select not in 排除例外情况的分页use myTestgocreate procedure proc_paged_with_notin ( @pageIndex int, --页索引 @pageSize int --每页记录数) as begin set nocount on; --没有返回值 declare @sql nvarchar(500) set @sql='select top '+str(@pageSize)+&# 阅读全文
posted @ 2012-08-19 11:04 jsping68 阅读(180) 评论(0) 推荐(0) 编辑