Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: finding a table's primary key
Try querying user_constraints where table_name = '<your_table_name>' and
constraint_type = 'P'.
HTH,
Roy
In article <7bgijs$i1e$1_at_nnrp1.dejanews.com>,
jerwynn_at_buyasia.com wrote:
> Is there an SQL or PL/SQL command to query the primary key of a table?
>
> If not, where (in which tables) can I find information
> about the primary keys of tables?
>
> Thanks.
>
> Jerwynn
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Mar 02 1999 - 08:59:22 CST
![]() |
![]() |