select col1 from tablename returns 2 rows, i want to concat thse two rows data into single column as comma separated.
A:
You can write a cursor to loop through the returned rows one by one and concatenate as you like.
johnbk
2010-10-22 08:32:28
NO i need to do it only using a query
Faisal khan
2010-10-22 09:09:56
@Faisal Khan - Daniel Emge's solution here should be helpful for you.http://stackoverflow.com/questions/468990/how-can-i-combine-multiple-rows-into-a-comma-delimited-list-in-oracle
johnbk
2010-10-22 09:15:19
A:
Here are some examples of same kind of situation: http://www.dba-oracle.com/t_converting_rows_columns.htm
oocce
2010-10-22 09:21:17