<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] # 索引操作 索引是創建在表上并對數據庫表中一列或多列的值進行排序的一種結構。其作用主要在于提高查詢的速度,降低數據庫系統的性能開銷。 ## 創建索引 使用`CREATE INDEX`語句創建表的索引。 示例: 1. 執行以下命令,創建表`test`。 ~~~ obclient> CREATE TABLE test (c1 int primary key, c2 VARCHAR(10)); ~~~ 2. 執行以下命令,創建表 test 的索引。 ~~~ obclient> CREATE INDEX test_index ON test (c1, c2); ~~~ 更多`CREATE INDEX`語句相關的語法說明請參見《SQL 參考(MySQL 模式)》中的[CREATE INDEX](https://open.oceanbase.com/docs/community/oceanbase-database/V3.1.0/create-index)[CREATE INDEX](https://open.oceanbase.com/docs/community/oceanbase-database/V3.1.0/create-index)章節。 ## 查看索引 使用`SHOW INDEX`語句查看表的索引。 示例如下: 查看表`test`的索引。 ~~~ obclient> SHOW INDEX FROM test; ~~~ ## 刪除索引 使用`DROP INDEX`語句刪除表的索引。 示例如下: 刪除表`test`的索引。 ~~~ obclient> DROP INDEX test_index ON test; ~~~ 更多`DROP INDEX`語句相關的語法說明請參見《SQL 參考(MySQL 模式)》中的[DROP INDEX](https://open.oceanbase.com/docs/community/oceanbase-database/V3.1.0/drop-index)章節。
                  <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>

                              哎呀哎呀视频在线观看