关于 "Select count(*) as cnt from table order by count(*) group by dc_id"
我不是香烟 2003-10-29 12:50:13 "Select count(*) as cnt from table order by count(*) group by dc_id"(错误)
库里只有一个字段,里面有各种数据,比如:
01
02
01
03
02
04
02
01
03
...
现在要做的是把01,02,03...的记录条数统计出来, 然后按照大小顺序排列
象我这样写的错误在哪里?应该怎么写这个语句?
这样:
"Select count(*) as cnt from table group by dc_id"
只做到了统计,要排序需要怎么修改这个语句~