This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes know the table name dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

know the table name dynamically

joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
joe here

is there any method to get the names of tables dynamically present in

database
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

Have a look at java.sql.DatabaseMetaData


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

...and please refrain from posting the same question in more than one forum. Thanks.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

I was about to move this to JDBC but there is already a copy, so this thread will be closed.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: know the table name dynamically
 
Similar Threads
Refresh page programatically
User Name Validation
HELP!
lots of "extends" ??
Help setting up an array and other issues