Have a question or want live help from a DataStax engineer? Let's chat.
Can't find what you're looking for? Try searching other guides
Cassandra Query Language (CQL) is a query language for the Cassandra database.
Data modeling topics.
CQL provides an API to Cassandra that is simpler than the Thrift API.
CQL reference topics.
About using CQL.
CQL input consists of statements that change data, look up data, store data, or change the way data is stored.
Built-in data types for columns.
CQL support functions for transforming one or more column values into a new value.
Upper CQL limits.
The CQL shell (cqlsh utility) commands.
CQL commands.
Changes keyspace replication and enable/disable commit log.
Changes the table properties of a materialized view, Cassandra 3.0 and later.
Changes password, and set superuser or login options.
Modifies the columns and properties of a table.
Modify a user-defined type. Cassandra 2.1 and later.
Alter existing user options.
Applies multiple data modification language (DML) statements with atomicity and/or in isolation.
Create user-defined aggregate.
Generates a SASI index on a single table column.
Define a new index on a single column of a table.
Creates custom function that execute user provided code in Cassandra.
Define a new keyspace.
Create a materialized view in Cassandra 3.0 and later.
Define a new table.
Registers a trigger on a table.
Create a user-defined type in Cassandra 2.1 and later.
Create roles for access control to database objects.
Create a new user.
Removes data from one or more columns or removes the entire row.
Drop a user-defined aggregate.
Drop user-defined function (UDF).
Drop the named index.
Remove the keyspace.
Remove the named materialized view in Cassandra 3.0 and later.
Removes a role.
Remove the named table.
Removes registration of a trigger.
Drop a user-defined type. Cassandra 2.1 and later.
Remove a user.
Defines resource authorization.
Inserts an entire row or upserts data into existing rows.
Lists role permissions on resources.
Lists roles and shows superuser and login status.
Lists existing internal authentication users and their superuser status.
Remove privileges on database objects from roles.
Retrieve data from a Cassandra table.
Remove all data from a table.
Update columns in a row.
Connects the client session to a keyspace.
This section describes the commands that are specific to CQL.