Database Toolbox |
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
x = Columns 1 through 8 'orcl' 'SCOTT' 'DEPT' '0' 'null' 'null' '0' '0' 'orcl' 'SCOTT' 'DEPT' '0' 'null' 'PK_DEPT' '1' '1' Columns 9 through 13 'null' 'null' '4' '1' 'null' 'DEPTNO' 'null' '4' '1' 'null'
dbmeta
is the database metadata object.
orcl
is the catalog cata
.
SCOTT
is the schema sch
.
DEPT
is the table tab
.
The results contain two rows, meaning there are two index columns. The statistics for the first index column are shown in the following table.
For more information about the index information, seehttp://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html
for a description of the getIndexInfo
property.
importedkeys | insert |
© 1994-2005 The MathWorks, Inc.