Database Toolbox Previous page   Next Page
indexinfo

Get indices and statistics for database table

Syntax

Description

x = indexinfo(dbmeta, 'cata', 'sch', 'tab') returns the indices and statistics for the table tab, in the schema sch, of the catalog cata, for the database whose database metadata object is dbmeta, where dbmeta was created using dmd.

Examples

Type

MATLAB returns

In this example:

The results contain two rows, meaning there are two index columns. The statistics for the first index column are shown in the following table.

Column
Description
Value
1
Catalog
orcl
2
Schema
SCOTT
3
Table
DEPT
4
Non-unique: 0 if index values can be non-unique, 1 otherwise
0
5
Index catalog
null
6
Index name
null
7
Index type
0
8
Column sequence number within index
0
9
Column name
null
10
Column sort sequence
null
11
Number of rows in the index table or number of unique values in the index
4
12

Number of pages used for the table or number of pages used for the current index

1
13
Filter condition
null

For more information about the index information, see
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html for a description of the getIndexInfo property.

See Also
dmd, get, tables


Previous page  importedkeys insert Next page

© 1994-2005 The MathWorks, Inc.