首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle wm_concat函数,用来列转行,逗号分隔

2012-08-11 
oracle wm_concat函数,用于列转行,逗号分隔??SQL select create or replace view as select || wm_conc

oracle wm_concat函数,用于列转行,逗号分隔

?

?

SQL> select 'create or replace view as select '|| wm_concat(column_name) || ' from dept'from user_tab_columns where table_name='DEPT';

'CREATEORREPLACEVIEWASSELECT'||WM_CONCAT(COLUMN_NAME)||'FROMDEPT'

--------------------------------------------

create or replace view as select DEPTNO,DNAME,LOC from dept

热点排行