oracle drop index code example
Example 1: oracle sql drop index
DROP INDEX index_name;
Example 2: oracle drop index if exists
DECLARE
index_not_exists EXCEPTION;
PRAGMA EXCEPTION_INIT (index_not_exists, -1418);
BEGIN
EXECUTE IMMEDIATE 'drop index foo';
EXCEPTION
WHEN index_not_exists
THEN
NULL;
END;
/