Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Primary Key
Have a look at DBA_CONSTRAINTS (or ALL_CONSTRAINTS).
Select * from all_constraints where table_name='EMP'; would do it.
To find out which columns are part of the constraint, select * from all_cons_columns where table_name='EMP';
Regards
HJR
-- ---------------------------------------------- Resources for Oracle: http://www.hjrdba.com =============================== "Kram" <myoung_at_optushome.com.au> wrote in message news:Qwgj8.35$an4.4277_at_nsw.nnrp.telstra.net...Received on Tue Mar 12 2002 - 02:52:22 CST
> How do I find the primary key of a table?
>
>