Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

primary key fields

Status
Not open for further replies.

castleWolf

Instructor
Jan 23, 2005
26
AZ
How to find primary key tables in database tables?

thanx
 
What do you call "primary key tables"? Ones that have primary key? You may query USER_CONSTRAINTS:

Code:
select table_name 
from USER_CONSTRAINTS 
where constraint_type='P'

Regards, Dima
 
it partially worked :)
i changed USER_CONSTRAINTS to ALL_CONSTRAINTS
thanx for help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top