Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Referencing columns by their position in a table ??

Re: Referencing columns by their position in a table ??

From: Matt Randle <matt_at_imat.demon.co.uk>
Date: Wed, 7 Jul 1999 14:08:51 +0100
Message-ID: <931353330.8696.0.nnrp-12.d4e48d0d@news.demon.co.uk>


That doesn't work as you can't use the results of a select statement to specify a column name.

For example,

Select (select column_name from dba_tab_columns where column_id = 2 and table_name = 'Tabname') from tabname;

is not valid.

Doing it this way would require two sql satements ?? (which actually is better than my current method)

Is there anyway of doing it with one statement ??

Matt. Received on Wed Jul 07 1999 - 08:08:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US