SQL Query to get Primary Column Names in a table in DB2 Database

Hi
   How to i select primary columns in a table using query.From which table can i get those information.
Plz help on this

TIA
-Pari.
pari205Asked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
Hi,

  you should be able to find the information in the SysXXXX tables:
SYSIBM.SYSKEYS  

or also via this
SYSIBM.SYSINDEXES
SYSIBM.SYSTABLES  
SYSIBM.SYSCOLUMNS

etc

Cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.