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: Data Dictionary - Primary Keys

Re: Data Dictionary - Primary Keys

From: Ulrich F. Zeh <zeh_at_regware.de>
Date: Mon, 21 Dec 1998 07:30:29 +0100
Message-ID: <367DEB05.A71F6B33@regware.de>


hi Craig,
if the tables are your's use USER_CONS_COLUMNS otherwise use ALL_CONS_COLUMNS select table_name, column_name
from user_cons_columns
order by position;

Craig Fullerton wrote:

> hi
>
> i am trying to get a list of the primary key columns in an Oracle 8.0.5
> database, using the data dictionary. Any Ideas?
>
> i need the data returned as
>
> TableName PKColumnName
>
> thanks
>
> ---
> craig fullerton
> idion - fab technology
> 083 785 3423
Received on Mon Dec 21 1998 - 00:30:29 CST

Original text of this message

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