Oracle:将子查询中的多个结果组合成一个逗号分隔的值

2021-12-06 00:00:00 sql subquery oracle string-aggregation

我正在尝试将单列子查询转换为命令分隔的 VARCHAR 类型的值列表.

I'm trying to convert a single-columned subquery into a command-separated VARCHAR-typed list of values.

这与这相同问题,但针对 Oracle 而不是 SQL Server 或 MySQL.

This is identical to this question, but for Oracle rather than SQL Server or MySQL.

推荐答案

可用的字符串聚合技术在 Tim Hall 的网站上.

There is an excellent summary of the available string aggregation techniques on Tim Hall's site.

相关文章