KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the code as follows: DatabaseMetaData dmd = connection.getMetaData(); ResultSet rs = dmd.getPrimaryKeys(null, null, tableName); while(rs.next()){ primaryKey = rs.getString("COLUMN_NAME"); } rs is not null while rs.next() always return false , anyone has idea about it? Thanks.
Tags (comma-separated)
Save Edits
Cancel