kylin3.1.x 执行查询SQL 作者:马育民 • 2021-05-13 07:06 • 阅读:10247 # 说明 WEB UI 中提供了执行sql的功能 # 操作如下 [![](https://www.malaoshi.top/upload/pic/kylin/Snipaste_2021-12-13_07-06-39.png)](https://www.malaoshi.top/upload/pic/kylin/Snipaste_2021-12-13_07-06-39.png) ### sql ``` select dname,sum(sal) as 工资合计,avg(sal) as 平均工资 from emp a join dept b on a.deptno = b.deptno group by dname ``` ### 查询结果 [![](https://www.malaoshi.top/upload/pic/kylin/Snipaste_2021-12-13_07-10-18.png)](https://www.malaoshi.top/upload/pic/kylin/Snipaste_2021-12-13_07-10-18.png) 原文出处:http://malaoshi.top/show_1IX2Ohq8wxAE.html