File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
getIndexInfo , how to get all columns that index applys on them ?
Joined: Jul 14, 2005
Oct 13, 2006 03:05:00
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 ?
Joined: May 26, 2003
Oct 13, 2006 06:03:00
Get indexInfo returns a
object. The schema is listed in the API. For example, COLUMN_NAME is column #9. So you would just loop through the result set.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
subject: getIndexInfo , how to get all columns that index applys on them ?
How to determine 1:1, 1:M etc. relationships using DatabaseMetaData
can we get index name ?
A few doubts
Confusion in creating indexes
Error in retrieving data using java from Column whose name is a reserved word in SQL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014