Difference between revisions of "SYSINDEXINFO"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision: SQL) |
Helen.george (Talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Description of a table’s indices and statistics | Description of a table’s indices and statistics | ||
− | |||
==See Also== | ==See Also== | ||
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]] | [[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]] | ||
− | |||
==Description== | ==Description== | ||
System Tables are system defined read-only tables. You can query these tables using the SELECT statement. | System Tables are system defined read-only tables. You can query these tables using the SELECT statement. | ||
− | + | {| class="wikitable" width="100%" | |
− | {| class="wikitable" | + | |
!Column||Data Type||Width||Description | !Column||Data Type||Width||Description | ||
|- | |- | ||
Line 32: | Line 29: | ||
|COLUMN_NAME||C||30||Column name | |COLUMN_NAME||C||30||Column name | ||
|- | |- | ||
− | |ASC_OR_DESC||C||1||Column sort sequence, "A" is ascending, "D" is descending | + | |valign="top"|ASC_OR_DESC||valign="top"|C||valign="top"|1||Column sort sequence, "A" is ascending, "D" is descending |
|- | |- | ||
− | |CARDINALITY||N||10||The number of rows in the table or the number of unique values in the index, depending on the index type | + | |valign="top"|CARDINALITY||valign="top"|N||valign="top"|10||The number of rows in the table or the number of unique values in the index, depending on the index type |
|- | |- | ||
− | |PAGES||N||2||The number of pages used for the table or the number of pages used for the current index, depending on the index type | + | |valign="top"|PAGES||valign="top"|N||valign="top"|2||The number of pages used for the table or the number of pages used for the current index, depending on the index type |
|- | |- | ||
|FILTER_CONDITION||C||30||Filter condition | |FILTER_CONDITION||C||30||Filter condition | ||
|- | |- | ||
|} | |} | ||
− | |||
==Example== | ==Example== | ||
Line 48: | Line 44: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
[[Category:System Tables]] | [[Category:System Tables]] |
Latest revision as of 10:43, 31 January 2013
Contents
Purpose
Description of a table’s indices and statistics
See Also
DATA TYPES, SELECT, SYSTEM TABLES
Description
System Tables are system defined read-only tables. You can query these tables using the SELECT statement.
Column | Data Type | Width | Description |
---|---|---|---|
TABLE_CAT | C | 30 | Table catalog |
TABLE_SCHEM | C | 30 | Table schema |
TABLE_NAME | C | 30 | Table name |
NON_UNIQUE | L | 1 | Can index values be non-unique? |
INDEX_QUALIFIER | C | 30 | Index catalog |
INDEX_NAME | C | 30 | Index name |
TYPE | N | 2 | Index type |
ORDINAL_POSITION | N | 3 | Column sequence number within index |
COLUMN_NAME | C | 30 | Column name |
ASC_OR_DESC | C | 1 | Column sort sequence, "A" is ascending, "D" is descending |
CARDINALITY | N | 10 | The number of rows in the table or the number of unique values in the index, depending on the index type |
PAGES | N | 2 | The number of pages used for the table or the number of pages used for the current index, depending on the index type |
FILTER_CONDITION | C | 30 | Filter condition |
Example
SELECT * FROM sysindexinfo