I try to disable a constraint attached to a column in a table
ALTER TABLE
ADV_TEST_COURSE_CREDIT
DISABLE constraint
name = (SELECT
constraint_name
from
user_constraints natural join
user_cons_columns
where
table_name = 'ADV_TEST_COURSE_CREDIT' AND
column_name = 'SEQUENCE_NUMBER' AND
constraint_type = 'C');
I try the statement above. It is not working. Any idea on how to make it work.
Table ADV_TEST_COURSE_CREDIT exists in dev, UAT, Production, so the constraint name is different, but it is all attached a column called SEQUENCE_NUMBER