我已經選擇,如:wm_concat功能和小characer緩衝
select substr(account,1,4), currency, amount, module,count(*) quan, wm_concat(id) ids from all_transactions group by substr(account,1,4), currency, amount, module
但有時COUNT(*),更多的則是600。在這種情況下,我得到: 「ORA-06502:PL/SQL:字符字符串緩衝區太小'
是否有任何方法保留所有記錄的wm_concat(id)? 因爲排除具有大COUNT(*)條目的此函數是出路。
collect(id)可以使用,但我不能將其導出爲excel正確:( – Ruslan 2010-04-29 12:58:21