if(page_num==1){
sql="select top "+p.getRowsPerPage()+" * from pubExchangeRate"
}else{
sql="select top "+p.getRowsPerPage()+" * from pubExchangeRate where eid>(select max(student1.eid) from (select top "+(p.getCurPage()-1)*p.getRowsPerPage()+" eid from pubExchangeRate) student1) "
}
mysql里用limit
比如,你要查前10条记录
select * from 表名 order by 字段名 limit 10欢迎分享,转载请注明来源:内存溢出
评论列表(0条)