Oracle.表分區:列表分區

來源:互聯網
上載者:User

允許使用者將不相關的資料群組織在一起

文法:

  1. PARTITION BY LIST (column_name)  
  2. (  
  3.   PARTITION part1 VALUES (values_list1),  
  4.   PARTITION part2 VALUES (values_list2),  
  5.   ...  
  6.   PARTITION partN VALUES (DEFAULT)  
  7. );  
例:
  1. CREATE TABLE Employee  
  2. (  
  3.     Emp_ID number (4),  
  4.     Emp_Name varchar2 (14),  
  5.     Emp_Address varchar2 (15)  
  6. )  
  7. PARTITION BY LIST (Emp_Address)  
  8. (  
  9.     Partition north values (‘芝加哥'),  
  10.     Partition west values (‘舊金山’, ‘洛杉磯'),  
  11.     Partition south values (‘亞特蘭大’, ‘達拉斯’, ‘休斯頓'),  
  12.     Partition east values (‘紐約’, ‘波斯頓')  
  13. );  

更多Oracle相關資訊見Oracle 專題頁面 http://www.bkjia.com/topicnews.aspx?tid=12

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.