Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determining the primary key

Status
Not open for further replies.

lowbk

Technical User
Nov 26, 2001
162
SG
suppose i only know the name of a table, know nothing about its schema, then the way to retrieve details would be select * from table-name .

from the resultset and resultsetmetadata class, i can get some info about the columns.

my question is how to know which column holds the primary key? the resultset and resultsetmetadata do not contain api for finding primary key.

any kind soul pls advise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top