解决方案 »

  1.   

    SELECT top 1  count(book_id) as m FROM `browse_history` group by `user_ID` order by count(book_id) desc
      

  2.   

    select max(m) from (SELECT user_id,count(book_id) as m FROM `browse_history` group by `user_ID`) tmp
      

  3.   

    这句不行,#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 count(book_id) as m FROM `browse_history` group by `user_ID` order by count(bo' at line 1 
      

  4.   

    大神这句可以了,能简单介绍一下么?还有后面的tmp又是什么