{"id":5465,"date":"2016-10-24T08:45:37","date_gmt":"2016-10-24T08:45:37","guid":{"rendered":"http:\/\/www.withdata.com\/blog\/?p=5465"},"modified":"2017-04-20T10:59:12","modified_gmt":"2017-04-20T10:59:12","slug":"how-to-get-index-column-names-of-a-table-from-db2","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/db2\/how-to-get-index-column-names-of-a-table-from-db2.html","title":{"rendered":"How to get index column names of a table from DB2"},"content":{"rendered":"<p><code>select name,colnames from sysibm.sysindexes<br \/>\nwhere tbname='my_table_name'<\/code><\/p>\n<p>See also:<\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/sql-server\/how-to-get-index-column-names-of-a-table-from-sql-server.html\">How to get index column names of a table from SQL Server<\/a><\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/mysql\/how-to-get-index-column-names-of-a-table-from-mysql.html\">How to get index column names of a table from MySQL<\/a><\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/postgresql\/how-to-get-index-column-names-of-a-table-from-postgresql.html\">How to get index column names of a table from PostgreSQL<\/a><\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/sqlite\/how-to-get-index-column-names-of-a-table-from-sqlite.html\">How to get index column names of a table from SQLite<\/a><\/p>\n<p><a href=\"http:\/\/www.withdata.com\/blog\/oracle\/how-to-get-index-column-names-of-a-table-from-oracle.html\">How to get index column names of a table from Oracle<\/a><\/p>\n<p>Some DB2 tools you can try: <a href=\"https:\/\/www.withdata.com\/db2\/\"> https:\/\/www.withdata.com\/db2\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>select name,colnames from sysibm.sysindexes where tbname=&#8217;my_table_name&#8217; See also: How to get index column names of a table from SQL Server How to get index column names of a table from MySQL How to get index column names of a table from PostgreSQL How to get index column names of a table from SQLite How to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1318,1720],"class_list":["post-5465","post","type-post","status-publish","format-standard","hentry","category-db2","tag-db2","tag-get-index-columns"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/5465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=5465"}],"version-history":[{"count":3,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/5465\/revisions"}],"predecessor-version":[{"id":6440,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/5465\/revisions\/6440"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=5465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=5465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=5465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}