Is it possible to find out the primary key(s) from ResultSet or ResultSetMetaData?
for (int j=1; j<=metaData.getColumnCount(); j++)
{
String type = metaData.getColumnTypeName(j);
String columnName = metaData.getColumnName(j);
// I want to know this column is primary key or not.
}