sql2005 分页 (int pageNo, int pageSize, String str)

[复制链接]
查看11 | 回复1 | 2012-5-14 10:53:20 | 显示全部楼层 |阅读模式
是不是分页排序,我提供一个java的给你,希望能帮助你Integer page=pageNo-1;Integer selPage=selPage*page;sql = "select top "+pageSize+" a.quesid, a.title,a.content,a.itemid,a.userid,a.offerscore,a.status,a.questiontime,a.clickcount,a.acceptflag,a.commentsflag,b.parentItem,b.subItem,c.username from t_question a ,t_item b,t_user c where a.userid=c.id ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行