Files
doris/docs/en/sql-manual/sql-reference-v2/Data-Definition-Statements/Create/CREATE-INDEX.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +08:00

1.4 KiB

title, language
title language
CREATE-INDEX en

CREATE-INDEX

Name

CREATE INDEX

Description

This statement is used to create an index grammar:

CREATE INDEX [IF NOT EXISTS] index_name ON table_name (column [, ...],) [USING BITMAP] [COMMENT 'balabala'];

Notice:

  • Currently only supports bitmap indexes
  • BITMAP indexes are only created on a single column

Example

  1. Create a bitmap index for siteid on table1

    CREATE INDEX [IF NOT EXISTS] index_name ON table1 (siteid) USING BITMAP COMMENT 'balabala';
    

Keywords

CREATE, INDEX

Best Practice