Constraint name contains table name or not.
any one give me reply on this.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 15, 2013, 8:39 AM
VulpesPosted Jun 26, 2013, 5:23 AM
VulpesPosted Jun 25, 2013, 7:18 PM
SELECT * FROM DBA_CONSTRAINTS WHERE CONSTRAINT_TYPE = 'R' AND CONTAINS(CONSTRAINT_NAME, TABLE_NAME) > 0
Pulagara MuraliPosted Jun 25, 2013, 3:10 AM
Thanks for giving response. My actual query is, earlier in my company we have given Foreign key names without following naming conventions. But foreign key preceded with FK_somename. Now we following FK_TBNAMNE_RTB. I need a query on Foreign key which foreign key doesn't having table name.
We are following naming convention is :
FK_TBNAME_RTB
TBNAME : TABLE NAME
RTB : REFERENCE TABLE NAME
can you give me query for list of foreign keys which are not following above structure.
Thanks and Regards,
Murali P.