C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Cassandra Create IndexCREATE INDEX command is used to create an index on the column specified by the user. If the data already exists for the column which you choose to index, Cassandra creates indexes on the data during the 'create index' statement execution. Syntax: CREATE INDEX <identifier> ON <tablename> Rules for creating Index
Example: Let's take an example to demonstrate how to create index on a column. Here we create an index to a column "student_name" in the table "student". Prior table: CREATE INDEX name ON student (student_name); Index is created on the column "student_name". Note: You can verify that the index is created or not, by using the creating index query once again. It will show a message that index is already created.
Next TopicCassandra drop index
|