查找oracle某个表相关的字段约束
作者:互联网
select a.table_name,a.COLUMN_NAME,c.table_name,c.column_name from
user_cons_columns a, user_constraints b, user_cons_columns c
where a.constraint_name=B.CONSTRAINT_NAME
and b.r_constraint_name=c.constraint_name
and (c.table_name='CD_BAS_WELL_DATA' or a.table_name ='CD_BAS_WELL_DATA');
标签:cons,name,constraint,某个,查找,user,oracle,table,BAS 来源: https://www.cnblogs.com/cinemaparadiso/p/15180148.html