So just nest it with a group by either by schema or just create a constant.
Select stragf(table_name) from
(Select table_name, ‘a’ cnstnt from user_tables)
Group by cnstnt
email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Sanjay Mishra
Sent: Thursday, May 04, 2006 2:37 PM
Subject: RE: Sql Query
SQL> select stragg(table_name) from user_tables
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
Ken Naim <
Search for stragg on http://asktom.oracle.com
Behalf Of Sanjay Mishra
Sent: Thursday, May 04, 2006 1:12 PM
Subject: Sql Query
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.
Yahoo! Mail goes everywhere you do. Get it on your phone.
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.