Indexes in DB2
Posted by: DBA DB2,
on 13 Jul 2011 |
View original | Bookmarked: 0 time(s)
How to create a recordset of indexes in DB2 for a table?
---To list all indexes for a schema and table
db2 "Select indschema,indname,uniquerule,colnames from syscat.indexes where tabschema = '<MY_SCHEMA>' and tabname='<MY_TABLE>' order by indname"
Author: Jack Vamvas(http://www.dba-db2.com)
...