order by 只能是后面只能是字段名吗,不能是其它条件吗?

解决方案 »

  1.   

    select count(b.id) as count,a.u_name as name ,a.u_mail as mail from u_info a left join u_topic b using(u_name) order by count asc;
    不能确定肯定可以运行,自己调试以下
      

  2.   

    order by count asc应该就行了吧
      

  3.   

    select count(b.id) as count,a.u_name as name ,a.u_mail as mail from u_info a left join u_topic b using(u_name) group by name,mail order by count asc;这样即可!
      

  4.   

    好像我在书上看到运行MYSQL不支持子查询,不知是不是。