Oracle 多行记录合并方法

create or replace FUNCTION rawstrcat (input nvarchar2) RETURN nvarchar2
PARALLEL_ENABLE AGGREGATE USING rawstr;

 

Select Wod.MlotID, rawstrcat(waferNo) from wafertestorderdetail wod
join wafertestorder wo on wod.wafertestorderid = wo.wafertestorderid
left join (
select *
from wafertestorderfailture
) wof on wof.wafertestorderdetailid = wod.wafertestorderdetailid
Where WafertestorderDetailID =2360
group by MlotID;

posted on 2014-08-27 11:27  编程烂指  阅读(320)  评论(0编辑  收藏  举报

导航