describe indexes for table ‘表名’
可以查看对应表的索引信息
select a.* from syscat.columns a where a. tabname=表名
查询表所有字
select a. * from sysibm. syskeycoluse where tbname=表名
查询表所有主键字段信息,包括联合主键
describe indexes for table ‘表名’
可以查看对应表的索引信息
select a.* from syscat.columns a where a. tabname=表名
查询表所有字
select a. * from sysibm. syskeycoluse where tbname=表名
查询表所有主键字段信息,包括联合主键