我有选择:字符串缓冲区太小
select v.accs, v.currency,v.amount,v.drcr_ind, count(*) qua,wm_concat(ids) npx_IDS,
wm_concat(px_dtct) npx_DTCT
from table v
group by accs, currency, amount, drcr_ind
,但我得到的错误ORA-06502:PL/SQL:字符串缓冲区太小,如果我要删除一个字符串,因为有时当v( .accs = 3570)COUNT(*)= 215 但是当我尝试使用wm_concat为v.accs = 3570例如这种方式跳过:
select v.accs, v.currency,v.amount,v.drcr_ind, count(*) qua,wm_concat(ids) npx_IDS,
(case when v.accs = 3570 then wm_concat(px_dtct) else 'too many' end) npx_DTCT
from table v
group by accs, currency, amount, drcr_ind
我仍然有相同的错误消息。但为什么?
相同情况 – Ruslan 2010-04-01 07:37:38
结果相同 – Ruslan 2010-04-01 07:39:27