聚合函数不可以直接嵌套使用,比如: max(count(*))
但是可以嵌套子查询使用 eg:
注:后面那个 as 必须要写
select max(total) from ( select count(*) as total from blog group by btype) as aa;