oracle listagg乱码,oracle的listagg方法在使用时后台老警告

1.0.5版本报错,1.0.9版本该问题已解决。

2014-10-31 10:45:25,793 [http-bio-8080-exec-8] ERROR com.alibaba.druid.filter.stat.StatFilter - merge sql error, dbType oracle, sql :

select * from

( select a.*, rownum rn from

( select

cm.REPORT_ID, cm.TYPE_CODE, cm.REPORT_CODE, cm.REPORT_NAME, cm.OPERATOR_ID, cm.CREATE_TIME, cm.LAST_MODIFY_TIME,

cm.REPORT_STATUS,REPORT_TEMPLETE_NAME

,

(select LISTAGG(p.product_code,',')within group (order by p.report_id) from CM_APPLICATION_PRODUCT p where cm.report_id = p.report_id) product_codes,

(select LISTAGG(p.product_name,',')within group (order by p.report_id) from CM_APPLICATION_PRODUCT p where cm.report_id = p.report_id) product_names,

(select LISTAGG(ar.AREA_CODE,',') within group (order by ar.report_id) from CM_REPORT_AREA ar where cm.report_id = ar.report_id) area_codes,

(select LISTAGG(ar.AREA_NAME,',') within group (order by ar.report_id) from CM_REPORT_AREA ar where cm.report_id = ar.report_id) area_names,

t.type_name

from CM_REPORT cm ,CM_REPORT_TYPES t

where cm.type_code = t.type_code

order by product_codes,area_codes,cm.type_code ) a where rownum <= ? ) where rn > ?

com.alibaba.druid.sql.parser.ParserException: syntax error, expect BY, actual LPAREN group, pos 292

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值