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

Is it possible to findout primary ID, multiple Secondary ID


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

New User


Joined: 15 Nov 2004
Posts: 26
Location: Chennai, India

PostPosted: Tue Sep 05, 2006 1:49 pm
Reply with quote

Is it possible to findout Primary ID and multiple Secondary ID through by means of SPUFI or anyother utility to find out.
Back to top
View user's profile Send private message
sushil_ach

New User


Joined: 01 May 2006
Posts: 6

PostPosted: Tue Sep 05, 2006 3:49 pm
Reply with quote

Yes it is possible , u can try this querry.... let me know if it doesn't work..


SELECT NAME FROM SYSIBM.SYSCOLOUMNS
WHERE TBCREATOR = <TABLE CREATOR NAME>
AND TBNAME = <TABLE NAME>
AND KEYSEQ > 0 ;

OR,

SELECT A.COLNAME,
A.COLSEQ,
A.ORDERING,
FROM SYSIBM.SYSKEYS A,
SYSIBM.SYSINDEXES B
WHERE A.IXNAME = B.NAME
AND A.IXCREATOR = B.CREATOR
AND B.TBNAME = <TABLE NAME>
AND B.TBCREATOR = <TBCREATOR>
AND B.UNIQUERULE = 'P' ;
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top