[group by {col_name | position} [ASC | DESC ]]

 

分组条件

[HAVING where_condition]

HAVING 后面的条件必须出现在select语句中

相关文章: