= CQL Commands
:description: Describes Cassandra Query Language (CQL) statements supported by the DataStax Enterprise database.

This section describes the Cassandra Query Language (CQL) commands supported by the {product} database.

'''
xref:cassandra:developing/cql/ddl.adoc#alter-keyspace-statement[ALTER KEYSPACE] ::
Changes keyspace replication strategy and enables or disables commit log.

xref:cassandra:developing/cql/mvs.adoc#alter-materialized-view-statement[ALTER MATERIALIZED VIEW] ::
Changes the table properties of a materialized view.

xref:cassandra:developing/cql/security.adoc#alter-role-statement[ALTER ROLE] ::
Changes password and sets superuser or login options.

xref:cassandra:reference/cql-commands/alter-table.adoc[ALTER TABLE] ::
Modifies the columns and properties of a table, or modify

xref:cassandra:developing/cql/types.adoc#udts[ALTER TYPE] ::
Modifies an existing user-defined type (UDT).

xref:cassandra:developing/cql/security.adoc#alter-user-statement[ALTER USER (Deprecated)] ::
Deprecated. Alter existing user options.

xref:cassandra:developing/cql/dml.adoc#batch_statement[BATCH] ::
Applies multiple data modification language (DML) statements with atomicity and/or in isolation.

xref:cassandra:developing/cql/functions.adoc#create-aggregate-statement[CREATE AGGREGATE] ::
Defines a user-defined aggregate.
xref:cassandra:reference/cql-commands/create-custom-index.adoc[CREATE CUSTOM INDEX] ::
Creates a storage-attached index.

xref:cassandra:developing/cql/functions.adoc#create-function-statement[CREATE FUNCTION] ::
Creates custom function to execute user provided code.

xref:cassandra:reference/cql-commands/create-index.adoc[CREATE INDEX] ::
Defines a new index for a single column of a table.

xref:cassandra:developing/cql/ddl.adoc#create-keyspace-statement[CREATE KEYSPACE] ::

xref:cassandra:developing/cql/mvs.adoc#create-materialized-view-statement[CREATE MATERIALIZED VIEW] ::
Optimizes read requests and eliminates the need for multiple write requests by duplicating data from a base table.

xref:cassandra:developing/cql/security.adoc#create-role-statement[CREATE ROLE] ::
Creates a cluster wide database object used for access control.

xref:cassandra:reference/cql-commands/create-table.adoc[CREATE TABLE] ::
Creates a new table.

xref:cassandra:developing/cql/types.adoc#udts[CREATE TYPE] ::
Creates a custom data type in the keyspace that contains one or more fields of related information.

xref:cassandra:developing/cql/security.adoc#create-user-statement[CREATE USER (Deprecated)] ::
Deprecated. Creates a new user.

xref:cassandra:developing/cql/dml.adoc#delete_statement[DELETE] ::
Removes data from one or more columns or removes the entire row

xref:cassandra:developing/cql/functions.adoc#drop-aggregate-statement[DROP AGGREGATE] ::
Deletes a user-defined aggregate from a keyspace.

xref:cassandra:developing/cql/functions.adoc#drop-function-statement[DROP FUNCTION] ::
Deletes a user-defined function (UDF) from a keyspace.

xref:cassandra:reference/cql-commands/drop-index.adoc[DROP INDEX] ::
Removes an index from a table.

xref:cassandra:developing/cql/ddl.adoc#drop-keyspace-statement[DROP KEYSPACE] ::
Removes the keyspace.

xref:cassandra:developing/cql/mvs.adoc#drop-materialized-view-statement[DROP MATERIALIZED VIEW] ::
Removes the named materialized view.

xref:cassandra:developing/cql/security.adoc#drop-role-statement[DROP ROLE] ::
Removes a role.

xref:cassandra:reference/cql-commands/drop-table.adoc[DROP TABLE] ::
Removes the table.

xref:cassandra:developing/cql/types.adoc#udts[DROP TYPE] ::
Drop a user-defined type.

xref:cassandra:developing/cql/security.adoc#drop-user-statement[DROP USER (Deprecated)] ::
Removes a user.

xref:cassandra:developing/cql/security.adoc#grant-permission-statement[GRANT] ::
Allow access to database resources.

xref:cassandra:developing/cql/dml.adoc#insert-statement[INSERT] ::
Inserts an entire row or upserts data into existing rows.

xref:cassandra:developing/cql/security.adoc#list-permissions-statement[LIST PERMISSIONS] ::
Lists permissions on resources.

xref:cassandra:developing/cql/security.adoc#list-roles-statement[LIST ROLES] ::
Lists roles and shows superuser and login status.

xref:cassandra:developing/cql/security.adoc#list-users-statement[LIST USERS (Deprecated)] ::
Lists existing internal authentication users and their superuser status.

xref:cassandra:developing/cql/security.adoc#revoke-permission-statement[REVOKE] ::
Removes privileges on database objects from roles.

xref:cassandra:developing/cql/dml.adoc#select-statement[SELECT] ::
Returns data from a table.

xref:cassandra:developing/cql/ddl.adoc#truncate-statement[TRUNCATE] ::
Removes all data from a table.

xref:cassandra:developing/cql/dml.adoc#update-statement[UPDATE] ::
Modifies one or more column values to a row in a table.

xref:cassandra:developing/cql/ddl.adoc#use-statement[USE] ::
Selects the keyspace for the current client session.
