HOME
ACADEMY
DOCS
CONTACT US
DOWNLOAD DATASTAX
GLOSSARY
SUPPORT
DEVELOPER BLOGS
This document is
no longer maintained
.
CQL for Apache Cassandra™ 1.2
(Not supported)
About CQL for Cassandra 1.2
CQL data modeling
Introduction
Data modeling
Example of a music service
Compound keys and clustering
Collection columns
Adding a collection to a table
Updating a collection
Querying a collection
When to use a collection
Expiring columns
Counter columns
Using natural or surrogate primary keys
Indexing
When to use an index
About indexing
Using multiple indexes
Building and maintaining indexes
Working with pre-CQL 3 applications
Querying a legacy table
Using a CQL 3 query
Using CQL
Using CQL
Starting cqlsh
Starting cqlsh on Linux
Starting cqlsh on Windows
Starting cqlsh in CQL 2 mode
Using tab completion
Creating and updating a keyspace
Example of creating a keyspace
Updating the replication factor
Creating a table
Using a compound primary key
Inserting data into a table
Querying a system table
Keyspace, table, and column information
Cluster information
Retrieving and sorting results
Using the keyspace qualifier
Determining time-to-live for a column
Determining the date/time of a write
Adding columns to a table
Altering the data type of a column
Removing data
Expiring columns
Dropping a table or keyspace
Deleting columns and rows
Using collections
Using the set type
Using the list type
Using the map type
Indexing a column
Paging through unordered partitioner results
Using a counter
CQL reference
Introduction
CQL lexical structure
Uppercase and lowercase
Escaping characters
Valid literals
Exponential notation
CQL Keywords
Data types
Blob
Collection types
UUID and timeuuid
Timeuuid functions
Timestamp type
Counter type
Keyspace properties
Table properties
Subproperties of compaction
Subproperties of compression
cqlsh commands
cqlsh
ASSUME
CAPTURE
CONSISTENCY
COPY
DESCRIBE
EXIT
SHOW
SOURCE
TRACING
CQL commands
ALTER KEYSPACE
ALTER TABLE
ALTER USER
BATCH
CREATE INDEX
CREATE KEYSPACE
CREATE TABLE
CREATE USER
DELETE
DROP INDEX
DROP KEYSPACE
DROP TABLE
DROP USER
GRANT
INSERT
LIST PERMISSIONS
LIST USERS
REVOKE
SELECT
TRUNCATE
UPDATE
USE
Home
Academy
Docs home
Contact us
Download DataStax
Glossary
Support
Developer blogs
Search
Home
CQL reference
CQL commands
CQL commands
A list of CQL commands.
ALTER KEYSPACE
Change property values of a keyspace.
ALTER TABLE
Modify the column metadata of a table.
ALTER USER
Alter existing user options.
BATCH
Write multiple DML statements.
CREATE INDEX
Define a new index on a single column of a table.
CREATE KEYSPACE
Define a new keyspace and its replica placement strategy.
CREATE TABLE
Define a new table.
CREATE USER
Create a new user.
DELETE
Removes entire rows or one or more columns from one or more rows.
DROP INDEX
Drop the named index.
DROP KEYSPACE
Remove the keyspace.
DROP TABLE
Remove the named table.
DROP USER
Remove a user.
GRANT
Provide access to database objects.
INSERT
Add or update columns.
LIST PERMISSIONS
List permissions granted to a user.
LIST USERS
List existing users and their superuser status.
REVOKE
Revoke user permissions.
SELECT
Retrieve data from a Cassandra table.
TRUNCATE
Remove all data from a table.
UPDATE
Update columns in a row.
USE
Connect the client session to a keyspace.
CQL reference
Introduction
CQL lexical structure
Data types
Keyspace properties
Table properties
Subproperties of compaction
Subproperties of compression
cqlsh commands
CQL commands
ALTER KEYSPACE
ALTER TABLE
ALTER USER
BATCH
CREATE INDEX
CREATE KEYSPACE
CREATE TABLE
CREATE USER
DELETE
DROP INDEX
DROP KEYSPACE
DROP TABLE
DROP USER
GRANT
INSERT
LIST PERMISSIONS
LIST USERS
REVOKE
SELECT
TRUNCATE
UPDATE
USE