ALTER TABLE COLUMN ADD INDEX

Indexes an existing symbol column.

Syntax#

Flow chart showing the syntax of the ALTER TABLE keyword Flow chart showing the syntax of the ALTER TABLE with ADD INDEX keyword

Adding an index is an atomic, non-blocking, and non-waiting operation. Once complete, the SQL optimizer will start using the new index for SQL executions.

Example#

Adding an index
ALTER TABLE trades ALTER COLUMN instrument ADD INDEX;

โญ Something missing? Page not helpful? Please suggest an edit on GitHub.