1
I have a constraint
UNIQUE
in the PERSON table and is from the field CPF
.
To get the name of this contraint I use the query:
SELECT UC.CONSTRAINT_NAME FROM USER_CONSTRAINTS UC
INNER JOIN USER_TAB_COLUMNS UT ON UT.TABLE_NAME = UC.TABLE_NAME
WHERE UC.TABLE_NAME = 'PESSOA' AND UC.CONSTRAINT_TYPE = 'U' AND UT.COLUMN_NAME = 'CPF';
How do a procedure where first I take this name and give the drop in it?
Where I put the table name, column, etc ?
– Roknauta
Ué, as you asked, I set up a procedure that makes the constraints drop, just call this in an anonymous block passing by parameter as your need.
– Confundir
Explain your question better @Douglas
– David