Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to know primary key of a table using qmf

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: how to know primary key of a table using qmf
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    Post subject: Re: how to know primary key of a table using qmf
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us