Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Returning column names.
I am assuming you have the table_name & the rowid of the row you want to interogate. Otherwise how are you identifying the row? Plus you can identify the column names from all_tab_coluns OR dba_tab_columns
To return the columns of the table try
set pagesize 0
spool col.sql
select
'select '''||column_name||''' from YOUR_TABLE where '||column_name||' is
null and rowid = ''XXXXXXXXXXXXXXXXXXXXXXXX'';'from all_tab_columns
Yours
Kevin Bishop
Oracle DBA
Received on Wed Apr 18 2001 - 15:13:53 CDT