CONSTRAINT: individua le FOREIGN KEY associate ad una tabella

Per individuare le fk associate ad una tabella:


select c.owner , c.table_name, c.constraint_name
from ALL_CONSTRAINTS c
where r_constraint_name
in (
select constraint_name
from all_constraints
where owner ='<schema>'
--and constraint_type <> 'R'
and table_name='<nometabella>'
)
and c.constraint_type ='R';

Post popolari in questo blog

ORA-12154: TNS: il listener non è attualmente a conoscenza del servizio richiesto nel descrittore di connessione

Create e Drop Pluggable Database