ITPub博客

首页 > 数据库 > MySQL > 5.7与5.6 group by的不同之处

5.7与5.6 group by的不同之处

原创 MySQL 作者:哎呀我的天呐 时间:2015-12-15 12:10:29 0 删除 编辑
在5.7版本中注意group的用法:
use emp;
set sql_mode='';
select x.salary,x.department_id from 
(select e.* from emp e order by department_id,salary desc) x group by x.department_id;



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29990276/viewspace-1872536/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
https://cloud.tencent.com/developer/inventory/14362

注册时间:2014-10-30

  • 博文量
    403
  • 访问量
    2528783