
您可以在内部查询中使用DISTINCT:
SQL> select XMLAGG(XMLELEMENT(E, cust_name || ',')).EXTRACT('//text()') 2 from (SELECt distinct cust_name, cust_addr_type FROM cust_data) 3 where cust_addr_type ='old_address';XMLAGG(XMLELEMENT-----------------cust1,cust2,欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)