|
Archives of the TeradataForumMessage Posted: Mon, 18 Aug 2003 @ 14:07:40 GMT
The previous proposal would provide the basic index information but would not tell you if the indexes were Primary or Secondary, or whether they were Unique. The following will give you a better description: SELECT IndexNumber,ColumnName,ColumnPosition,IndexType,UniqueFlag The above assumes that you are only looking for Primary/Secondary indexes rather than Join / Hash indexes also. To add these you would need to look for IndexType 'J' and 'N' also. (If using V2R5 then look for 'Q' also - but this will not give you the partitioning details of the partitioned index.) The following case statement can be used to interpret the index types: CASE IndexType Mike Dempsey
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||