IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to know the columns that are part of an index


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Wed Aug 22, 2007 3:08 pm
Reply with quote

Hi All,
I want to know all the columns of a table which are part of a particular index. How do I know them from SYSIBM tables? I understand that SYSIBM.SYSINDEXES has information abt indexes on a particular table. But it will not give the list of columns. Please help.

Thanks a lot.
Back to top
View user's profile Send private message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Wed Aug 22, 2007 3:19 pm
Reply with quote

You could use the sysibm.syskeys table once u know the index name, to get the clumns

Thanks,
Prajesh
Back to top
View user's profile Send private message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Wed Aug 22, 2007 3:35 pm
Reply with quote

thanks a lot man icon_smile.gif. I got wat I needed.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Increase the number of columns in the... IBM Tools 3
No new posts Cobol file using index COBOL Programming 2
No new posts DB2 Views with Multiple SQL & Col... DB2 8
No new posts SORT - To repeat a string in same col... SYNCSORT 3
Search our Forums:

Back to Top