|
发表于 2020-6-19 21:00:01
|
显示全部楼层
你的WHERE条件错了,改成这样子吧:
Set Dets=Conn.Execute("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 10 i.id,b.orderid from info as i,infobidsoft as b where i.bid=b.orderid and 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")
|
|