For detailed instructions and examples on creating these indexes, see the corresponding tutorials listed above.TipThis operation requires the ALTER privilege on the target table. You can follow the instructions in GRANT to grant this privilege.
Syntax
CREATE INDEX index_name ON table_name (column_name) [USING { BITMAP | NGRAMBF | GIN | VECTOR } ] [(index_property)] [COMMENT '<comment>']
Parameter
Parameter
Required
Description
index_name
Yes
The index name. For naming conventions, see System Limits.
table_name
Yes
The name of the table.
column_name
Yes
The name of the column to build index on. One column can have only one index. If a column already has an index, you cannot create one more index on it.
USING
No
The type of the index to create. Valid values:
BITMAP (Default)
NGRAMBF
GIN
VECTOR
index_property
No
The properties of the index to create. For NGRAMBF, GIN, and VECTOR, you must specify the corresponding properties. For detailed instructions, see the corresponding tutorials.