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: Tables with and without Primary key

Re: Tables with and without Primary key

From: Kenneth Koenraadt <no email>
Date: Mon, 11 Feb 2002 09:18:31 GMT
Message-ID: <3c678ae1.2822849@news.capgemini.se>


On 11 Feb 2002 00:56:25 -0800, mkuruvil2000_at_yahoo.com (Jay) wrote:

>Could someone tell me how to list all the tables with Primary key set
>on them, and all tables without Primary key.
>
>Thanks in advance.

Tables with PK's :

select owner,table_name from dba_constraints where constraint_type ='P'

Regards,

Kenneth Koenraadt Received on Mon Feb 11 2002 - 03:18:31 CST

Original text of this message

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