Home | Previous Page | Next Page   Purpose-Function Reference > Purpose-Function Syntax >

am_create

The database server calls am_create to process a CREATE INDEX statement. The am_create function creates the index, based on the information in the table descriptor, which describes the keys in an index.

Syntax

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

Usage

Even if the access method does not provide an am_create function, the database server automatically adds the created object to the system catalog tables, such as systablessysindexes. For example, a user might issue the CREATE INDEX command to register an existing, external index in the database server system catalog.

The am_create function typically:

Important:
By default, transaction logging is disabled in sbspaces. To find out how to turn logging on, refer to Ensuring Data Integrity.

Return Values

MI_OK indicates success. MI_ERROR indicates failure.

Related Topics

In this manual, see the description of:

In the IBM Informix: DataBlade API Programmer's Guide, see the descriptions of:

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