Using the system table INDEXCOLUMNS, you can determine the following database information, among other things:
·
All inverted columns
(those assigned an index) of table
HOTEL
SELECT
DISTINCT columnname
FROM DOMAIN.INDEXCOLUMNS
WHERE tablename = 'HOTEL'
·
All inversions for table
RESERVATION, sorted by index, and then by the column sequence specified during
index definition
SELECT
indexname, type, columnname, sort
FROM DOMAIN.INDEXCOLUMNS
WHERE tablename = 'RESERVATION' ORDER BY indexname,
columnno
·
Information about the
columns that make up the index MYINDEX of your own table MYTABLE
SELECT
columnname, sort, datatype, len
FROM DOMAIN.INDEXCOLUMNS
WHERE tablename = 'MYTAB'
AND indexname ='MYINDEX' ORDER BY
columnno
All indexes: see INDEXES