Reserved CQL Keywords

CQL distinguishes between reserved and non-reserved keywords.

Reserved keywords cannot be used as identifier, they are truly reserved for the language (but one can enclose a reserved keyword by single or double-quotes to use it as an identifier). The following key-words are reserved:

  • ADD
  • ALLOW
  • ALTER
  • AND
  • APPLY
  • ASC
  • AUTHORIZE
  • BATCH
  • BEGIN
  • BY
  • COLUMNFAMILY
  • CREATE
  • DELETE
  • DESC
  • DESCRIBE
  • DROP
  • ENTRIES
  • EXECUTE
  • FROM
  • FULL
  • GRANT
  • IF
  • IN
  • INDEX
  • INFINITY
  • INSERT
  • INTO
  • KEYSPACE
  • LIMIT
  • MODIFY
  • NAN
  • NORECURSIVE
  • NOT
  • NULL
  • OF
  • ON
  • OR
  • ORDER
  • PRIMARY
  • RENAME
  • REPLACE
  • REVOKE
  • SCHEMA
  • SELECT
  • SET
  • TABLE
  • TO
  • TOKEN
  • TRUNCATE
  • UNLOGGED
  • UPDATE
  • USE
  • USING
  • WHERE
  • WITH