Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What does 'xmlagg' function do?

948187Aug 14 2012 — edited Aug 16 2012
I have a piece of code
select
RTRIM(xmlagg(xmlelement(en, empno,'.')) ||',')).EXTRACT('//text()').EXTRACT('//text()') ,',');
from employees
Can somebody please help me understand what xmlagg, xmlelement and extract does?

Thanks. :)

Edited by: Termite_paste on Aug 14, 2012 5:10 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2012
Added on Aug 14 2012
5 comments
140 views