📜  删除索引 oracle - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:25.034000             🧑  作者: Mango

代码示例2
DECLARE
   index_not_exists EXCEPTION;
   PRAGMA EXCEPTION_INIT (index_not_exists, -1418);
BEGIN
   EXECUTE IMMEDIATE 'DROP INDEX index_name';
EXCEPTION
   WHEN index_not_exists THEN NULL;
END;