Answers for "oracle drop index if exists"

SQL
5

oracle drop index if exists

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;
Posted by: Guest on May-31-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language