
这是数据库查出来的数据

这是页面中查出来的数据 count(*)也正常 但是数据显示不正常 并且查出来的集合也是13条 应该是20条

这是第一、二页显示多少条和实际查出来多少条
select * from (
select t.*, rownum r from (
select x.*,q.*,j.qjrzh,j.qjjlid,b.bz,b.jsh,b.jsmc,b.jslx from xsxxb x,qjjlb q,qjrxxb j,jfjxmsb b
where
x.xh=j.qjrzh and j.qjjlid=q.id and b.xsh=x.xsh
order by q.id
) t) where r>0 and r<=20
这是sql 我真是没招了 研究了一天