Naveen Sangu
Naveen Sangu

Reputation: 3

How to get the index KEY columns by query in db2 v6.1?

I am trying to get the Index key columns from Data base by using SQL.

Currently I am doing in manual way.

Please help me to get all the index key details from query.

FYI (SYSIBM.SYSINDEXES/SYSIBM.kEYS are not working, SYSIBM.tables working)

Upvotes: 0

Views: 1769

Answers (1)

mao
mao

Reputation: 12307

If your Db2-server runs on i-Series then checkout QSYS2.SYSKEYS . See details at this link

Upvotes: 2

Related Questions