Oracle汇总用逗号加入字符串,以及编写自定义汇总 [英] Oracle aggregate for joining strings with comma, and about writing custom aggregates

查看:125
本文介绍了Oracle汇总用逗号加入字符串,以及编写自定义汇总的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Oracle上创建函数,如sum,min,max?

How can i create a function on Oracle like sum, min, max?

它将运行在结果集上。

Select join(',', Name), sum(total) From Account Group By IdCity


推荐答案

下面是一个文档链接,介绍如何创建自己的聚合函数: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10765/aggr_functions.htm

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

问候,

Rob。

Regards,
Rob.

这篇关于Oracle汇总用逗号加入字符串,以及编写自定义汇总的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆