Home > Database > Mysql Tutorial > [Oracle]使用wmsys.wm_concat将进行行合并

[Oracle]使用wmsys.wm_concat将进行行合并

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:18:58
Original
1175 people have browsed it

[Oracle]使用wmsys.wm_concat将进行行合并

借助wmsys.wm_concat函数的帮助,可以对行进行合并:
如某用户表有如下数据:



使用SQL:

select  wmsys.wm_concat(name) from EMP

的效果如下:



也就是说wmsys.wm_concat能将行合并起来,并用逗号分隔开来。在取子类别,,一对多关系中一方取多方数据时这个函数能起到事半功倍的效果。

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template