Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

names and properties of tables in database using jdbc

 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

How do I use jdbc to find out the properties of the available tables within a database?

Thanks,
bryan
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what java.sql.DatabaseMetaData provides. You can get an instance from the Connection object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic