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

Thread: Partition Key

  1. #1
    Join Date
    Apr 2002
    Posts
    41

    Partition Key

    I would like to know on which column the table has been partitioned.Which table would contain this information

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Code:
    SELECT   COLUMN_NAME 
    FROM     SYS.DBA_PART_KEY_COLUMNS
    WHERE    OWNER='schema_name' 
         AND NAME='table_name' 
         AND SUBSTR(OBJECT_TYPE,0,5)='TABLE' 
    ORDER BY COLUMN_POSITION
    /
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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