Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere 服务器 - SQL 的用法 » 表、视图和索引 » 索引

 

重建索引

有时需要重建索引,因为由于对表执行大量的插入和删除操作,索引会形成碎片。

前提条件

您必须具有 DBA 权限或者是要创建索引的表的所有者。

上下文和注释

重建索引时,重建的是物理索引。重建操作会为使用物理索引的所有逻辑索引带来好处。不必对逻辑索引执行重建。

 ♦ 使用 Sybase Central 重建索引
  1. 使用 SQL Anywhere 12 插件连接到数据库。

  2. 在左窗格中,双击 [索引]。

  3. 右击索引并单击 [重建]。

  4. 单击 [确定]。

结果

索引已重建,并且删除了碎片。

下一步

无。

 另请参见