开发者

plsql query return result into single row as concat

开发者 https://www.devze.com 2023-01-21 16:38 出处:网络
select col1 from tab开发者_StackOverflowlename returns 2 rows, I want to concat these two data rows into a single column separated by a comma.You can write a cursor to loop through the returned rows
select col1 from tab开发者_StackOverflowlename

returns 2 rows, I want to concat these two data rows into a single column separated by a comma.


You can write a cursor to loop through the returned rows one by one and concatenate as you like.


Here are some examples of same kind of situation: http://www.dba-oracle.com/t_converting_rows_columns.htm

0

精彩评论

暂无评论...
验证码 换一张
取 消