나는 선택이 있습니다WM_CONCAT 사용 CASE
select substr(acc,1,4)
,currency
, amount
, module
, count(*)
, (case when count(*) < 10 then wm_concat(trn_ref_no) else null end) trn
from fcc.acvw_all_ac_entries
where trn_dt = to_date ('05052010','DDMMYYYY')
group by substr(acc,1,4),currency, amount, module
그러나 : 나는 그것을 변경 ORA-06502: PL/SQL: : character string buffer too small ... "WMSYS.WM_CONCAT_IMPL"
버퍼 제한 오류를 방지하려면 :이 경우
select substr(acc,1,4)
,currency
, amount
, module
, count(*)
, wm_concat(trn_ref_no) trn
from all_entries
where date = to_date ('01012010','DDMMYYYY')
group by substr(acc,1,4),currency, amount, module
내가 오류가 발생 이 경우에도 동일한 오류가 있습니다. 어떻게이 오류를 피할 수 있습니까?
당신이 요청한 것과 다소 비슷합니다 http://stackoverflow.com/questions/2558771/charater-string-buffer-too-small – Unreason