Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Sql Query
Ken
SQL> select stragg(table_name) from user_tables
2 /
select stragg(table_name) from user_tables
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.STRING_AGG_TYPE", line 17 ORA-06512: at line 1
It works for Group by Clauses like
select table_name,stragg(index_name) from user_indexes group by table_name
Regds
Sanjay
Ken Naim <kennaim_at_gmail.com> wrote:
v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Search for stragg on http://asktom.oracle.com
---------------------------------
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Sanjay Mishra
Sent: Thursday, May 04, 2006 1:12 PM
To: oracle-l_at_freelists.org
Subject: Sql Query
Sql Gurus
I need to create the sql script that can display all tables from user_tables in one line seperated by ",". Is there any straighforward SQL that can display the result in Horizontal instead of single table in each row.
Regds
Sanjay
Yahoo! Mail goes everywhere you do. Get it on your phone.
-- http://www.freelists.org/webpage/oracle-lReceived on Thu May 04 2006 - 14:36:34 CDT
![]() |
![]() |