<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                [TOC] # 二級分區表 二級分區是按照兩個維度來把數據拆分成分區的操作。最常用的地方是類似用戶賬單的場景。 OceanBase 數據庫目前支持 Hash、Range 和 List 三種分區?式,MySQL 模式下還支持 Key、Range Columns 和 List Columns 三種分區方式,并且支持任意兩種分區方式的組合。 當前 MySQL 模式和 支持的二級分區如下: * Hash + Hash 分區 * Hash + Range 分區 * Hash+ List 分區 * Range + Hash 分區 * Range +Range 分區 * Range +List 分區 * List+ Hash 分區 * List+Range 分區 * List+List 分區 * Hash +Key 分區 * Hash +Range Columns 分區 * Hash +List Columns 分區 * Range +Key 分區 * Range +Range Columns 分區 * Range +List Columns 分區 * List+Key 分區 * List+Range Columns 分區 * List+List Columns 分區 * Key +Hash 分區 * Key +Range 分區 * Key+List 分區 * Key +Range Columns 分區 * Key +List Columns 分區 * Range Columns+Hash分區 * Range Columns+Range 分區 * Range Columns+List 分區 * Range Columns+Key 分區 * Range Columns+List Columns 分區 * List Columns +Hash 分區 * List Columns +Range 分區 * List Columns +List 分區 * List Columns +Key 分區 * List Columns +Range Columns 分區 當前,?級分區表可分為模板化二級分區表和非模板化二級分區表。 ## 創建模板化二級分區表 模板化?級分區表的每個?級分區下的?級分區都按照模板中的?級分區定義,即每個?級分區下的?級分區定義均相同。 語法如下: ~~~ CREATE TABLE .... partition BY [hash|range|list] (column_list) subpartition BY [hash|range|list] (column_list) subpartition template ( subpartition subpart_name subpartition_define , ... ) ( partition part_name partition_define , ... ~~~ 對于模板化?級分區表來說,?級分區的命名規則為 ($part\_name)s($subpart\_name) 。 例如,對于下?的`t_range_range`表,`p0`下的 3 個?級分區的分區名分別為`p0srp1`、`p0srp2`、`p0srp3`。 ~~~ obclient> CREATE TABLE t_range_range (c1 int, c2 int, c3 int) partition BY range(c1) subpartition BY range (c2) subpartition template ( subpartition rp1 VALUES less than (100), subpartition rp2 VALUES less than (200), subpartition rp3 VALUES less than (300) ) ( partition p0 VALUES less than (100), partition p1 VALUES less than (200), partition p2 VALUES less than (300) ); ~~~ ## 創建非模板化二級分區表 ?模板化?級分區表的每個?級分區下的?級分區均可以?由定義,即每個?級分區下的?級分區的定義可以相同也可以不同。 ~~~ CREATE TABLE .... partition BY [hash|range|list] (column_list) subpartition BY [hash|range|list] (column_list) ( partition part_name partition_define ( subpartition subpart_name subpartition_define , ... ) , ... ) ~~~ 對于?模板化?級分區表來說,?級分區的分區名即為?定義的分區名。 例如,對于下?的`t_range_range1`表,p0 下的 3個?級分區的分區名分別是`p0_r1`、`p0_r2`、`p0_r3`。 ~~~ obclient> CREATE TABLE t_range_range1 (c1 int, c2 int, c3 int) partition BY range(c1) subpartition BY range (c2) ( partition p0 VALUES less than (100) ( subpartition p0_r1 VALUES less than (100), subpartition p0_r2 VALUES less than (200), subpartition p0_r3 VALUES less than (300) ), partition p1 VALUES less than (200) ( subpartition p1_r1 VALUES less than (100), subpartition p1_r2 VALUES less than (200), subpartition p1_r3 VALUES less than (300) ), partition p2 VALUES less than (300) ( subpartition p2_r1 VALUES less than (100), subpartition p2_r2 VALUES less than (200), subpartition p2_r3 VALUES less than (300) ) ); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看