asp降序排列 5
setrs=server.createobject("adodb.recordset")rs.open"SELECTt1.Expr1,t2.Expr2,news_area...
set rs=server.createobject("adodb.recordset")
rs.open "SELECT t1.Expr1,t2.Expr2, news_area.area_name,news_area.area_id FROM (SELECT area_id, COUNT(*) AS Expr1 FROM news WHERE (guest_aid >= 0) and (type_id>0) GROUP BY area_id) AS t1 inner JOIN news_area ON t1.area_id = news_area.area_id left outer JOIN (SELECT area_id, COUNT(*) AS Expr2 FROM news as news_1 WHERE (guest_aid >0) and (type_id>0) AND (promotion_end_date > '" & now() & "') GROUP BY area_id ) AS t2 ON t1.area_id = t2.area_id",conn,1,1
如何实现降序排列谢谢! 展开
rs.open "SELECT t1.Expr1,t2.Expr2, news_area.area_name,news_area.area_id FROM (SELECT area_id, COUNT(*) AS Expr1 FROM news WHERE (guest_aid >= 0) and (type_id>0) GROUP BY area_id) AS t1 inner JOIN news_area ON t1.area_id = news_area.area_id left outer JOIN (SELECT area_id, COUNT(*) AS Expr2 FROM news as news_1 WHERE (guest_aid >0) and (type_id>0) AND (promotion_end_date > '" & now() & "') GROUP BY area_id ) AS t2 ON t1.area_id = t2.area_id",conn,1,1
如何实现降序排列谢谢! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询