|
发表于 2010 年 11 月 22 日 11:46:58
|
显示全部楼层
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
$ u# b/ x: Z2 p0 a* D G; B3 ^) O0 e' s3 ]
select ( 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) as xuhao, author 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
3 C# O }8 O6 O这个是显示发帖的楼层数& _. G( b6 g: m. {
|
|