方式一:一个单元格不换行
select max(substr(SYS_CONNECT_BY_PATH(COLUMN_NAME, ','),2)) col from (
select COLUMN_NAME,column_id from user_tab_columns where table_name='表名')
start with column_id=1
connect by column_id=rownum;
方式二:换行
select t.column_name||',' from user_col_comments t where t.table_name = '表名';