【发布时间】:2012-03-16 09:59:06
【问题描述】:
我需要一个函数,它返回字符串列表。
我在表中有这样的数据:
Id MyString
------------------------
1 First
2 Second
3 Third
4 Fourth
我需要这样的功能(这样的东西在 oracle 中有效):
select LISTAGG(MyString, ', ') as myList where id < 4
返回如下内容:
myList
------------------------
First, Second, Third
有什么想法吗?
【问题讨论】: