Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
-- DISABLE -- accept tab prompt "Enter the name of the table to disable its constraints: " set serveroutput on declare sql_stm varchar2(2000); begin dbms_output.enable(1000000); for x in (select constraint_name ,decode(constraint_type,'P',' cascade') casc from user_constraints where table_name = upper('&tab')) loop sql_stm := 'alter table &tab disable constraint '|| x.constraint_name||x.casc; dbms_output.put_line(sql_stm); execute immediate sql_stm; end loop; end; /
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.