`

行转列函数wm_concat

 
阅读更多

wm_concat是10G提供的行转列函数

比如

select warehouse_id as wid from table  and rownum <= 6

1               200020

2               200020

3               200020

4               200020

5               200020

6               200020

select wm_concat(warehouse_id) as wid from table and rownum <= 10

1           200020,200020,200020,200020,200020,200020

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics