Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Drop constraint in PL@SQL
ups..been to fast, should be:
DECLARE
cursor cur
IS
SELECT TABLE_NAME,
CONSTRAINT_NAME
BEGIN
FOR rec IN cur
LOOP
my_sql := ' ALTER TABLE ' || rec.table_name || ' DROP CONSTRAINT ' || rec.constraint_name ; execute immediate l_sql;
END LOOP;
END;
/
Received on Wed Nov 05 2003 - 13:00:06 CST