The ADD DEFAULT INDEX parameter has been added to the ALTER TABLE statement to enable adding a default index.
For more information about default indexes, see the section CREATE TABLE in the SQL Reference Guide.
The following diagram shows the syntax placement of the new parameter for the Default Index enhancement to the ALTER TABLE statement:
►►─ ALTER TABLE ─┬─────────────────┬─ table-identifier ────────────────────────►
└─ schema-name ─.─┘
►────┬─ . . . ───────────────────────────────────────────┬────────────────────►◄
└─ ADD DEFAULT INDEX ───────────────────────────────┘
The following parameter describes the Default Index enhancement to the ALTER TABLE statement
Creates a default index for the named table.
The table must not already have a default index associated with it.
The following statement adds a default index to the EMP.DEPT table:
alter table emp.dept
add default index;
|
Copyright © 2010 CA.
All rights reserved.
|
|