1. Create a table index
create index index name on table name (column name, column name);
2, delete the table index
drop index index name on table name;
3. View table index
select * from sysibm.sysindexes where tbname='table name'; --- table name is case sensitive
Or in the background you can use:
describe indexes for table 表名;
4. View the SQL statement execution plan
db2expln -d 库名 -f test.sql -t -g -z ";" > test.exp