jQuery in Action, 3rd edition
The moose likes JDBC and Relational Databases and the fly likes get column value from column name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "get column value from column name" Watch "get column value from column name" New topic
Author

get column value from column name

Yudi Ono
Greenhorn

Joined: Aug 24, 2008
Posts: 12
hi..
i want to retrieve column field value after i retrieve column name, but i don't know what to do..

here's my code




please help..

regards

Yudi
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Is it all the column in the same table or different tables ?


you can use column_name as string in SELECT statement for the table , query the databae . and you get the required columns only,


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: get column value from column name
 
It's not a secret anymore!