你用分两步啊,
先取总固顶的贴子,在所有的分论坛.
sql="select * from table where isalltop=1 order by posttime desc,id desc"再求分论坛的贴子,并过滤在此分论坛中的总固顶贴.以免重重.
sql="select * from table where NclassID=1 and isalltop=0 order by istop desc,posttime desc,id desc"
先取总固顶的贴子,在所有的分论坛.
sql="select * from table where isalltop=1 order by posttime desc,id desc"再求分论坛的贴子,并过滤在此分论坛中的总固顶贴.以免重重.
sql="select * from table where NclassID=1 and isalltop=0 order by istop desc,posttime desc,id desc"
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货