取得一个表的所有字段名,用逗号分割。
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=1connect by column_id=rownum;