Is there any way to find out Primary key from a resultset. I looked in ResultSetMetaData and ResultSet interfaces, and couldn't find any. My problem is to copy a row in one of the table, which has a primary key. During insertion time, you cannot specify a value for Primary key column and i would like to skip the value in the result set which is a value for the primary key.
shashi
Yogen Vadnere
Ranch Hand
Joined: Sep 20, 2001
Posts: 58
posted
0
Hello, DatabaseMetaData has two methods getPrimaryKeys(String catalog, String schema, String table) Hope this will work for u..
Yogen Vadnere
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.