📜  oracle sql drop index - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:52.300000             🧑  作者: 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;