2018年6月10日
摘要: 1、select 指定的字段要么要包括在聚合函数中,要么就要跟在group by的后面作为分组的依据。 PS:可以用Max()函数括起来必须要查的非数字型的字段。 2、distinct 用于返回唯一不同的值 例:select distinct company from orders。--一个公司名称 阅读全文
posted @ 2018-06-10 20:10 heihaha 阅读(146) 评论(0) 推荐(0) 编辑