57,062
社区成员
发帖
与我相关
我的任务
分享update pw_threads a inner join
(select * from pw_threads A where 5>(select count(*) from pw_threads where A.fid=fid and A.postdate<postdate)) b
set a.lastpost=(select lastpost from (select lastpost from pw_threads order by lastpost desc limit 0,1) a)+1
where .....