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!

need help for XMLAGG

788343Feb 8 2013 — edited Feb 8 2013
For this below query I want single quotes are required for each kintana_number

and when I increase value <=100 I get error like ORA-19011 how to modify above one get in single quotes and avoid 0ra-19011
please help

SELECT DISTINCT RTRIM
(XMLAGG
(XMLELEMENT (e, p.kintana_number || ',').EXTRACT
('//text()')
),
','
)
FROM project p where p.projectid <=100


select
listagg (kintana_number, ',')||''''
WITHIN GROUP
(ORDER BY kintana_number)
FROM
project where projectid<=100
I want every kintana_number should be in singlequote after every comma separated

Edited by: user13301356 on Feb 8, 2013 12:39 AM
This post has been answered by odie_63 on Feb 8 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2013
Added on Feb 8 2013
5 comments
2,252 views