| Author |
getIndexInfo , how to get all columns that index applys on them ?
|
raminaa niilian
Ranch Hand
Joined: Jul 14, 2005
Posts: 550
|
|
Hi thank you for reading my post. getIndexInfo is a method of DatabaseMetaData , how i can get all column that the index is applied on them ? for example if there is an index which is created on 3 columns , how i extract them ? thanks
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26214
|
|
Raminaa, Get indexInfo returns a ResultSet object. The schema is listed in the API. For example, COLUMN_NAME is column #9. So you would just loop through the result set.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: getIndexInfo , how to get all columns that index applys on them ?
|
|
|