Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 517 Bytes

drop-table-constraints.rst

File metadata and controls

17 lines (14 loc) · 517 Bytes

drop table constraints

BEGIN
  FOR ind IN
    (SELECT index_name FROM user_indexes WHERE table_name = upper('comm_attch_file') AND index_name NOT IN
       (SELECT unique index_name FROM user_constraints WHERE
          table_name = upper('comm_attch_file') AND index_name IS NOT NULL))
  LOOP
      execute immediate 'DROP INDEX '||ind.index_name;
  END LOOP;
END;