DataStax Luna — Enterprise Support for Apache Cassandra. Start a Free 30-Day Trial Now!
Can't find what you're looking for? Try searching other guides
CQL (Cassandra Query Language) is a query language for the DataStax Distribution of Apache Cassandra database.
Quickstart for CQL.
Provides a consolidated syntax list of Cassandra Query Language (CQL) commands for quick reference.
Basic rules to follow when designing a DataStax Distribution of Apache Cassandra database.
Shows the CQL command syntax and rules, and provides instruction on using CQL shell (cqlsh).
Create and drop keyspaces. Manage the replication factor (data availability).
Create, replace, alter, and drop customized user-defined functions, aggregates, and types.
How to create tables to store data.
Retrieve data sets from a table using SELECT statements.
How to insert data into a table with either regular or JSON data.
Performing multiple writes in the same command.
CQL reference topics.
About using CQL.
Describes CQL column types.
Describes scalar functions that work on values in a single row of data to create a new value.
Works on a set of rows matching the SELECT statement to return a single value.
Commands specific to the Cassandra Query Language shell (cqlsh) utility.
cqlsh
CQL commands.
Changes keyspace replication strategy and enables or disables commit log.
Changes the table properties of a materialized view.
Changes password and sets superuser or login options.
Modifies the columns and properties of a table.
Modifies an existing user-defined type (UDT).
Alter existing user options.
Applies multiple data modification language (DML) statements with atomicity and/or in isolation.
Defines a user-defined aggregate.
Defines a new index for a single column of a table.
Creates custom function to execute user provided code.
Defines a new keyspace.
Optimizes read requests and eliminates the need for multiple write requests by duplicating data from a base table.
Creates a cluster wide database object used for access control.
Creates a new table.
Registers a trigger on a table.
Creates a custom data type in the keyspace that contains one or more fields of related information
Deprecated. Creates a new user.
Removes data from one or more columns or removes the entire row.
Deletes a user-defined aggregate from a keyspace.
Deletes a user-defined function (UDF) from a keyspace.
Removes an index from a table.
Removes the keyspace.
Removes the named materialized view.
Removes a role.
Removes the table.
Removes registration of a trigger.
Drop a user-defined type.
Removes 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.
Configures the column on which permissions can be granted.
Removes privileges on database objects from roles.
Returns data from a table.
Removes all data from a table.
Removes the partition key selection for row level access control.
Modifies one or more column values to a row in a table.
Selects the keyspace for the current client session.
CQL commands to set up the cycling examples used in this guide.
This section describes the commands that are specific to CQL.