【发布时间】:2020-06-21 08:06:40
【问题描述】:
我在这里看到一篇帖子,使用 LISTAGG 将多行分组为 1 列下的一行,我查看了帖子示例和 oracle 网站,但无法使查询正常工作。
在 sql developer 中,错误是 ORA-00909: invalid number of arguments
我有以下问题
select d.id, d.name, d.date_sale, d.address, d.city, d.state, d.zipcode, d.description, d.explanation, d.received_date,
listagg(dd.my_id, dd.customer_name, dd.category, dd.transaction_date, ';'
) within group (order by dd.transaction_date)
from table1 d
left join table2 dd on d.id = dd.my_id
where d.id =1 and d.isActive =1
感谢任何帮助。
【问题讨论】: