0
Hello, I have the following select:
SELECT CONSTRAINT_NAME FROM user_cons_columns WHERE COLUMN_NAME = 'CANCELAMENTO' and table_name = 'NAVIO';
After picking the name the same goes to another query but if it returns null I end up having an error and interrupts my script. How would a condition be to verify whether it has worked or not? If it returns something, it will be executed:
alter table NAVIO DROP CONSTRAINT || constr_name;