How Can I query a table by column postion and what is the syntax
Oracle is currently working on an SR on this topic, while we are diagnosing the problem we are opening up this question to our user community so they can add perspective to the solution based on their real world experience
To select the second column of a given table,
SELECT COLUMN_NAME FROM DBA_TAB_COLUMNS WHERE TABLE_NAME = '<table name>'
and COLUMN_ID = '2';
Now you can query on the second column of your table in question.
Any other suggestions?
Regards,
Suntrupth
To select the second column of a given table,
SELECT COLUMN_NAME FROM DBA_TAB_COLUMNS WHERE TABLE_NAME = '<table name>'
and COLUMN_ID = '2';
Now you can query on the second column of your table in question.
Any other suggestions?
Regards,
Suntrupth
0