primary keys
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: primary keys

  1. #1
    Join Date
    May 2002
    Posts
    232
    Hiiii,is there any sql script to find the all primary keys tables on a particular owner?
    thanks
    kavitha
    kavitha

  2. #2
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    Code:
    select
            TABLE_NAME, CONSTRAINT_NAME, STATUS
    from
            DBA_CONSTRAINTS
    where
            owner = 'ABC' and constraint_type = 'P'
    order by
            TABLE_NAME desc;
    Oracle Certified Master
    Oracle Certified Professional 6i,8i,9i,10g,11g,12c
    email: ocp_9i@yahoo.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width