我创建了这样的索引:
--CREATE INDEXES for Tables
CREATE UNIQUE INDEX worker_name_index ON WORKER (worker_id);
CREATE UNIQUE INDEX company_name_index ON COMPANY (company_name);
CREATE UNIQUE INDEX project_name_index ON PROJECT (project_id);
但找不到索引在哪里:
SELECT * FROM USER_INDEXES;
也不在这里:
SELECT * FROM ALL_INDEXES;
也不在这里:
SELECT * FROM DBA_INDEXES;
并且也不能删除这些索引,因为删除会抛出 ORA-01418:specified index does not exist 错误。
--REMOVE INDEXES
DROP INDEX project_name_index;
DROP INDEX company_name_index;
DROP INDEX project_name_index;
并且无法重新创建,因为创建上升 ORA-01408:such columnt in list already indexed error...
已编辑(使用 select * all_ind_columns 并且索引不存在)