|
楼主 |
发表于 2010 年 11 月 22 日 00:55:40
|
显示全部楼层
select ( select count(*) as dd from pre_forum_post as a where a.fid='863265' and a.tid='105' and a.pid<b.pid order by pid) as xuhao, author, count(*) from pre_forum_post as b where b.fid='863265' and b.tid='105' and first=0 and mod(( select count(*) as dd from pre_forum_post as a where a.fid='863265' and a.tid='105' and a.pid<b.pid order by pid) ,25)=0
9 D6 j; k& Y. k: I; E
& S: n- y, h7 q$ m* \
1 |: U! \8 C4 w8 R8 T这个只看发帖者.并显示踢中次数( q& D3 H0 }; @ v, {1 r9 Z
哈哈.MYSQL不会.真累" p. u5 [3 ?/ d. O. T l0 v# f( d
还是MSSQL比较容易懂 |
|