在 dbspace 中存储索引

使用 IN dbspace 子句指定您希望索引驻留的 dbspac。当和任何选项(除了 TABLE 关键字)一起使用此子句时,将创建拆离的索引。

IN dbspace 子句允许您隔离索引。例如, 如果 customer 表在 custdata dbspace 中创建,但您希望在称为 custind 的单独的 dbspace 中创建索引,请使用以下语句:
CREATE TABLE customer
   . . .
   IN custdata EXTENT SIZE 16;
 
CREATE INDEX idx_cust ON customer (customer_num) IN custind;