博客
关于我
oracle 行转列
阅读量:792 次
发布时间:2023-02-24

本文共 700 字,大约阅读时间需要 2 分钟。

SELECT deptno, wm_concat(ename) FROM emp GROUP BY deptno;

 

?????????????????

?????????????? GROUP BY ? wm_concat ?????????????????????????? SQL ???

SELECT deptno, wm_concat(ename) FROM emp GROUP BY deptno;

?????????????????? GROUP BY deptno ???????????????????????????????

?????????

?????????????????????????????????????????????????????????

????????

? emp ???? deptno ????????????????????????????????????

?????? wm_concat ??

?? wm_concat ?????????????????? empno ?????????????????????????????

?????????????????????????????????????????

??????????????????????????????????????

转载地址:http://eapfk.baihongyu.com/

你可能感兴趣的文章
MySQL 多表联合查询:UNION 和 JOIN 分析
查看>>
MySQL 大数据量快速插入方法和语句优化
查看>>
mysql 如何给SQL添加索引
查看>>
mysql 字段区分大小写
查看>>
MySQL 存储引擎
查看>>
mysql 更新子表_mysql 在update中实现子查询的方式
查看>>
mysql 自增id和UUID做主键性能分析,及最优方案
查看>>
Mysql 自定义函数
查看>>
mysql 表的操作
查看>>
MySQL 触发器
查看>>
mysql 让所有IP访问数据库
查看>>
MySQL 高可用性之keepalived+mysql双主
查看>>
mysql5.6.21重置数据库的root密码
查看>>
MySQL5.6忘记root密码(win平台)
查看>>
mysql5.7 for windows_MySQL 5.7 for Windows 解压缩版配置安装
查看>>
mysql5.7性能调优my.ini
查看>>
mysql5.7的安装和Navicat的安装
查看>>
MySQL8.0.29启动报错Different lower_case_table_names settings for server (‘0‘) and data dictionary (‘1‘)
查看>>
MySQL8修改密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
查看>>
mysqlbinlog报错unknown variable ‘default-character-set=utf8mb4‘
查看>>