• Post Reply Bookmark Topic Watch Topic
  • New Topic

Composite Primary key and JDBC

 
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!