Oracle aggregate for joining strings with comma, and about writing custom aggregates

大城市里の小女人 提交于 2019-11-28 14:20:38

Here is a link to the documentation that describes how you can create your own aggregate functions: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10765/aggr_functions.htm

Regards,
Rob.

Use wmsys.wm_concat if Oracle version is 10 or more.

You can also do a lookup on creating aggregate functions in Oracle.

Note that SQLite has the group_concat builtin aggregate if maybe you were interested in it.

Check out the listagg function. It's a solution to your problem (although it doesn't describe how to build your own aggregate function).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!