项目中需要用到Sybase数据库的分页功能,想尽各种办法都没有成功,最后用如下的存储过程成功实现功能,记录备忘. ),@start int, @pageSize int as begin declare @ipage int declare @rcount int ) ) declare @t int,@p int,@n int,@l int begin set @sql1=@sql set @t=charindex('select ',lower(@sql)) ,char_length() )…