Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Composite Primary key and JDBC  RSS feed

 
Vinod Chamoli
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have to get the primary key information of a database using JDBC. If in a table there is only one column marked as primary key I can get it using ResultSetMetaData which has method to do so, but what in case if a table has composite key.
Thanks in advance,
Vinod
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!