Back to Questdb

ALTER TABLE COLUMN ADD INDEX

documentation/query/sql/alter-table-alter-column-add-index.md

latest507 B
Original Source

Indexes an existing symbol column.

Syntax

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

questdb-sql
ALTER TABLE trades ALTER COLUMN instrument ADD INDEX;