Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: querying constraints
On Tue, 17 Sep 2002 09:12:30 -0700, "Torry Slaton"
<tslaton_at_tcshealthcare.com> wrote:
>Anybody know how I can query a table and get the primary key fields?
>
>Thanks!
>Torry
>
You need to query the datadictioniary:
user_constraints where table_name = '<your table>' and constraint_type
= 'P'
and user_cons_columns to get the column definition
Hth
Sybrand Bakker, Senior Oracle DBA
To reply remove -verwijderdit from my e-mail address Received on Tue Sep 17 2002 - 11:46:55 CDT
![]() |
![]() |