Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Iterate through columns in tables.  RSS feed

 
Koos Kombuis
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm a bit stuck here, I'm not that comfortable with SQL and would like to get a push into the right direction.

What I'm trying to do is, compare Java fields via reflection to those in an Oracle DB.

The reflection part isn't the problem though..

How will I go about it to get a table with a given name and loop through all the columns/fields inside the specified table?

Thanks in advance.
 
Scott Selikoff
author
Bartender
Posts: 4085
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getMetaData is your friend.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!