【发布时间】:2012-06-23 20:28:54
【问题描述】:
当我为 MS SQL Server 进行分页以与 jquery 数据表一起使用时,我编写了一个像这样的简单 sp
create PROCEDURE [dbo].[Get_SomeData] (
@startRowIndex BIGINT, @maximumRows BIGINT ,@sSearch VARCHAR(MAX),@total INT OUTPUT
)
AS
DECLARE @temp TABLE(RowRank BIGINT,custid BIGINT,names VARCHAR(500))
INSERT INTO @temp
SELECT ROW_NUMBER() OVER (ORDER BY custid) AS
RowRank,custid,names FROM dbo.SomeTable WHERE (names LIKE '%'+@sSearch+'%' )
SELECT @total=COUNT(custid) FROM @temp
SELECT * FROM @temp WHERE RowRank > @startRowIndex
AND RowRank <= (@startRowIndex + @maximumRows)
这使得通过增加@startRowIndex 可以轻松地对数据进行分页。但是如何使用 Cassandra 数据库和像 fluentcassandra(或任何 c# 客户端库)这样的 c# 客户端来实现相同的分页功能
【问题讨论】:
标签: c# pagination cassandra fluentcassandra