This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes get column value from column name Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: get column value from column name
 
Similar Threads
MetaData Incomplete?
MultiDimenaional Array sort
Getting null while trying to get value of Multiple list
Calling the Excel file using Java
problem while displaying multipage tiff image in applet