Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: View tables with no Foreign Keys?

Re: View tables with no Foreign Keys?

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 12 Sep 2006 09:49:44 -0700
Message-ID: <1158079782.679630@bubbleator.drizzle.com>


RJ wrote:
> Hi All,
>
> Is there a statement (any method) of getting a list of tables with no
> FK references?
>
> Thanks..

SELECT table_name
FROM user_tables
WHERE table_name NOT IN (

   SELECT table_name
   FROM user_constraints
   WHERE constraint_type = 'R');

-- 
Daniel Morgan
University of Washington
Puget Sound Oracle Users Group
Received on Tue Sep 12 2006 - 11:49:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US