Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: pl/sql - help!!
Here is a procedure (T_OFF) which disables the primary key constraint T_PK of a table called T, using the dbms_sql package :
SQL> create or replace procedure t_off as
dml_stmnt INTEGER;
BEGIN
dml_stmnt := dbms_sql.open_cursor;
dbms_sql.parse(dml_stmnt , 'ALTER TABLE t disable constraint t_pk',
dbms_sql.v7);
You can use it to create tables as well.
Hope this helps ... Received on Wed Feb 05 1997 - 00:00:00 CST