查询 db2 系统表 得到 表的索引 情况

引用

select * from syscat.indexes where tabname = 'T_CHECKLIMIT'

select * from syscat.indexes where tabname = 'T_CHECKLIMIT' and  indname = 'SQL171113120118780'

columns可以看到有哪几个column组成这个索引    +YWTAG+CHECKSTH
uniquerule 是表示是不是pk   P
ownertype表示是不是唯一   U


http://blog.csdn.net/db2china/article/details/17310159


http://blog.csdn.net/TUBER727/article/details/12564309

猜你喜欢

转载自dannyhz.iteye.com/blog/2410804