Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Querying for Unique or Primary Keys (analyze)
Look at XXX_Cons_columns
XXX in DBA, USER, ALL
--
Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk
rtm wrote in message <7o64k5$emc$1_at_s3000-01.magna.com.au>...
>I am trying to write a script that generates analyze statements on the fly
>for all my tables at a column level. The columns I want to analyze are the
>primary and unique columns.
>
>I have found the constraints views and table views but i haven;'t been able
>to find a way of working out which columns are in primary or unique
>constraints.
>
>Any help greatly appreciated.
>
>cheers
>rtm
>
>
Received on Tue Aug 03 1999 - 03:05:10 CDT
![]() |
![]() |