| From: | Ramesh T <rameshparnanditech(at)gmail(dot)com> |
|---|---|
| To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Pavel Stěhule <pavel(dot)stehule(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | xml |
| Date: | 2015-03-23 11:40:13 |
| Message-ID: | CAK8Zd=u6xz_Aianfa5osKmBC0iJ1zH_Gvd7Y+cCrENvns3M1Vw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi all,
SELECT xmlagg(xmlelement(
name actor, xmlattributes(first_name)
)ORDER BY actor_id,',')from actor;
the above code return following result,
[image: Inline image 1]
Question :
i want retrieve result from above XML result like
penelope,nick,jennifer,jhony,,,,,
xpath is their but unable to fix this query.
any help how to get only names from query not xml.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2015-03-23 12:30:44 | Re: xml |
| Previous Message | Pujol Mathieu | 2015-03-23 11:00:57 | Re: COPY command file name encoding issue (UTF8/WIN1252) |