|
View previous topic :: View next topic
|
| Author |
Message |
banuradha
New User

Joined: 20 Dec 2006 Posts: 19 Location: India
|
|
|
|
Hi all,
I have requirement to list primary keys for a bulk of tables and is that possible in REXX? or anyother way.
Thanks
Banu |
|
| Back to top |
|
 |
DavidatK
Active Member

Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
| What kind of tables are you talking about? |
|
| Back to top |
|
 |
banuradha
New User

Joined: 20 Dec 2006 Posts: 19 Location: India
|
|
|
|
| DavidatK wrote: |
| What kind of tables are you talking about? |
Its DB2 tables, I got an answer for it.if u know someother way please share it
the answer is
| Code: |
SELECT NAME
FROM
SYSIBM.SYSCOLUMNS
WHERE TBNAME = 'Table_name'
AND TBCREATOR = 'Tb_creator '
AND KEYSEQ > 0
ORDER BY KEYSEQ ASC |
|
|
| Back to top |
|
 |
|
|