标签:group esc 条件 logs order having min sel core
--select num from 表 group by num --select num from 表 group by num,nid --特别的:group by 必须在where之后,order by之前 --select num,nid from 表 where nid > 10 group by num,nid order by nid desc -- group by是关键 -- 可接多个分组的判断条件 --select num,nid,count(*),sum(score),max(score),min(score) from 表 group by num,nid --select num from 表 group by num having max(id) > 10
标签:group esc 条件 logs order having min sel core
原文地址:http://www.cnblogs.com/dengyg200891/p/6907630.html