|
楼主 |
发表于 2020-6-21 14:00:01
|
显示全部楼层
select top 10 i.bid,i.id,i.title,i.pic,i.path, b.name,b.orderid from info as i,infobigsort as b where i.id not in(select top 1 i.id from info as i where i.Commend_index=1 and agree=1 order by i.addtime desc) AND i.bid=b.orderid and i.Commend_index=1 and agree=1 order by i.addtime desc"
改成这样好象可以了 |
|