Home | Previous Page | Next Page   Descriptor Function Reference > Accessor Functions >

mi_tab_partnum()

The mi_tab_partnum() function retrieves the fragment identifier for the index.

Syntax

mi_integer mi_tab_partnum(MI_AM_TABLE_DESC *tableDesc)
tableDesc
points to the index descriptor.

Usage

If a CREATE INDEX or ALTER FRAGMENT statement specifies fragmentation, use this function to determine the current fragment identifier (also called a partition number). Each fragment occupies one named sbspace or extspace.

Return Values

The integer specifies physical address of the fragment.

For a fragmented index, the return value corresponds to the fragment identifier and the partn value in the sysfragments system catalog table.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]