如果在SQLPLS中触发查询,则删除索引ord_customer_ix_demo;此语句删除名为ord_customer_ix_demo的索引,该索引是在“压缩索引:示例”:这个也会把我的table掉下来吗?我在SQLPLS删除索引ord_customer_ix_demo中发出了一个查询;此语句删除名为ord_customer_ix_demo的索引,该索引是在“压缩索引:示例”:我想知道这会不会把我的table也弄倒?
ix0qys7i1#
不,它不会掉table的。样表:
SQL> create table demo as select level id from dual connect by level <= 5;Table created.
SQL> create table demo as select level id from dual connect by level <= 5;
Table created.
该表上的索引:
SQL> create index ord_ix_demo on demo (id);Index created.
SQL> create index ord_ix_demo on demo (id);
Index created.
表格内容:
SQL> select * from demo; ID---------- 1 2 3 4 5
SQL> select * from demo;
ID
----------
1
2
3
4
5
删除索引:
SQL> drop index ord_ix_demo;Index dropped.
SQL> drop index ord_ix_demo;
Index dropped.
table还在吗?是的
SQL> select * from demo; ID---------- 1 2 3 4 5SQL>
SQL>
1条答案
按热度按时间ix0qys7i1#
不,它不会掉table的。
样表:
该表上的索引:
表格内容:
删除索引:
table还在吗?是的