Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Query to identify the index developed on field of the table?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Fri Aug 31, 2007 4:51 am    Post subject: Query to identify the index developed on field of the table?
Reply with quote

Hi,

I need to know the indexed fields in a DB2 table?

Is there any query?

If i use SYSIBM.SYSINDEX i am getting only the index name, i didnt get the fields for the particular index.

Regards,
Nagu.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Aug 31, 2007 5:32 am    Post subject: Re: Query to identify the index developed on field of the ta
Reply with quote

Nagendran wrote:
Hi,

I need to know the indexed fields in a DB2 table?

Is there any query?

If i use SYSIBM.SYSINDEX i am getting only the index name, i didnt get the fields for the particular index.

Regards,
Nagu.


Code:
SELECT A.TBNAME, A.NAME, A.UNIQUERULE, A.CLUSTERING, B.COLNAME,  B.ORDERING, B.COLSEQ                                         
FROM SCB.SYSINDEXES A, SCB.SYSKEYS B                           
WHERE B.IXNAME = A.NAME                                         
ORDER BY 2, 7;                                       
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us