时间:2021-07-01 10:21:17 帮助过:66人阅读
取得一个表的所有字段名,用逗号分割。
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;