Database Administration (MOSC)

MOSC Banner

metadata for primary key

edited Feb 15, 2011 5:39AM in Database Administration (MOSC) 4 commentsAnswered
I am attempting to create dynamic SQL (select 'select count(*) from '||table_name||' '....) that includes a single-attribute primary key column.  How can I determine the column that is defined as the primary key in this dynamic context?  It's not in the 'dba_constraints' view.

Thank you.

 

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center