没用group by 文盲飘过 这个很难清出来吧? 试试我QQ群里发的, select author, count(*) from pre_forum_post_2 as b where b.fid='105' and b.tid='863265' and first=0 and mod(( select count(*) as dd from pre_forum_post_2 as a where a.fid='105' and a.tid='863265' and a.pid<b.pid order by pid) ,25)=0 group by author
select ( select count(*) as dd from pre_forum_post_2 as a wherea.fid='105' and a.tid='863265' and a.pid<b.pid order by pid) as xuhao, authorfrom pre_forum_post_2 as b where b.fid='105' and b.tid='863265' and first=0 and mod(( select count(*) as dd from pre_forum_post_2 as a wherea.fid='105' and a.tid='863265' and a.pid<b.pid order by pid) ,25)=0
这个是显示发帖的楼层数
页:
1
[2]