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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 的用法 » 创建数据库 » 使用数据库对象 » 使用索引

 

删除索引

如果不再需要某个索引,可以在 Sybase Central 或 Interactive SQL 中将其从数据库中删除。

♦  删除索引 (Sybase Central)
  1. 以具有 DBA 权限的用户身份,或以要创建索引的表的所有者身份连接到数据库。

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

  3. 右击索引,然后选择 [删除]。

  4. 单击 []。

♦  删除索引 (SQL)
  1. 以具有 DBA 权限的用户身份,或以与索引相关联的表的所有者身份连接到数据库。

  2. 执行 DROP INDEX 语句。

示例

以下语句会从数据库中删除 EmployeeNames 索引:

DROP INDEX EmployeeNames;

请参见DROP INDEX 语句