View previous topic :: View next topic
|
Author |
Message |
chandu_605k
New User
Joined: 17 Apr 2006 Posts: 7 Location: Kansas City
|
|
|
|
Hi Friendz,
This is reagrding DB2. I know the table name is X. But i don't know what is the primary key defined in this table : X. Could you please let me know, if you know how to find this?
Thanks & Regards
CSR |
|
Back to top |
|
|
anamikak
New User
Joined: 10 May 2006 Posts: 64 Location: Singapore
|
|
|
|
You can query the catalog tables for this-
Try out this query:
SELECT NAME,UNIQUERULE from SYSIBM.SYSINDEXSES
where TBNAME= 'your table name' and UNIQUERULE = 'P'; |
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Hi Anamika,
what does UNIQUERULE = 'P' mean here ?
Thanks. |
|
Back to top |
|
|
chandu_605k
New User
Joined: 17 Apr 2006 Posts: 7 Location: Kansas City
|
|
|
|
Hi Anamika,
Thanks for sending a quick reply. Its working. Thanks Once again.
Hi Neel(Simply),
'P' means Primary key.
Please correct me if i am wrong.
Thanks & Regards
CSR |
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Thanks CSR.......so sorry for such a silly qns......
Thanks Anamika.
Thanks. |
|
Back to top |
|
|
|