select top 10 * from(select count(userid),bid from B_Users group by bid order by count(userid) desc)
select top 10 * from(select count(userid),bid from B_Users group by bid order by count(userid) desc) ¶¥£¡£¡ SELECT Top 10 bid ,count(userid) from B_Users group by bid select top 10 * from(select count(userid),bid from B_Users group by bid order by count(userid) desc) select top 10 * from(select count(userid),bid from B_Users group by bid order by count(userid) desc) Õâ¾äÔËÐÐÁË ±¨ÕâÑùµÄ´íŶ The ORDER BY clause is invalid in views, inline functions, derived tables, and subqueries, unless TOP is also specified.
ÊÇµÄ top10¿ÉÒÔ
Èç´ËÈç´Ë ¡¢Õâ°ãÕâ°ã SQL code
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.Cod