Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select column data by pasing in column name

Status
Not open for further replies.

mcgibbong

Programmer
Jan 17, 2002
38
GB
I am writing a function that accepts the column name from all_tab_columns for any table and select the column data using this name. eg get the column name account_number which i know is in the accounts table, from all_tab_columns. I then want to select account_number from accounts. If I just pick up the column name account_number from all_tab_columns , and do select i'll get the text account_number. I need a way of getting 'contents of filed named'account_number into the select.

Long explanation, hopefully short answer.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top