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

how to know primary key of a table using qmf


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mfibm

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Wed Sep 13, 2006 7:33 pm
Reply with quote

how to know primary key of a table using qmf.....

let me know the full process..

tanks in advans
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Wed Sep 13, 2006 8:34 pm
Reply with quote

Try this query:

SELECT *
FROM SYSIBM.SYSCOLUMNS
WHERE KEYSEQ > 0 AND TBNAME = 'TABLE NAME'
ORDER BY TBNAME , TBCREATOR , KEYSEQ

If you use PLATINUM, it is much easier.

Enter Table name in Item Name and RI in DB2 Object then select PK = Primary Key Columns in next options screen.

Hope this helps.
Back to top
View user's profile Send private message
mfibm

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Thu Sep 14, 2006 10:26 am
Reply with quote

tanks for ur time rasheed , let me try and check...

Likki
Back to top
View user's profile Send private message
mfibm

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Thu Sep 14, 2006 5:13 pm
Reply with quote

Hi rasheed......its fine .its working...........

tanks........
Likki
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top