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 double-quotes to use it as an identifier). Non-reserved keywords however only have a specific meaning in certain context but can used as identifer otherwise. The only
raison d'ĂȘtre of these non-reserved keywords is convenience: some keyword are non-reserved when it was always easy for the parser to decide whether they were used as keywords or not.
Keyword | Reserved? |
ADD | yes |
ALL | no |
ALTER | yes |
AND | yes |
ANY | yes |
APPLY | yes |
AS | no |
ASC | yes |
ASCII | no |
AUTHORIZE | yes |
BATCH | yes |
BEGIN | yes |
BIGINT | no |
BLOB | no |
BOOLEAN | no |
BY | yes |
CLUSTERING | no |
COLUMNFAMILY | yes |
COMPACT | no |
CONSISTENCY | no |
COUNT | no |
COUNTER | no |
CREATE | yes |
DECIMAL | no |
DELETE | yes |
DESC | yes |
DOUBLE | no |
DROP | yes |
EACH_QUORUM | yes |
FLOAT | no |
FROM | yes |
GRANT | yes |
IN | yes |
INDEX | yes |
CUSTOM | no |
INSERT | yes |
INT | no |
INTO | yes |
KEY | no |
KEYSPACE | yes |
LEVEL | no |
LIMIT | yes |
LOCAL_ONE | yes |
LOCAL_QUORUM | yes |
MODIFY | yes |
NORECURSIVE | yes |
NOSUPERUSER | no |
OF | yes |
ON | yes |
ONE | yes |
ORDER | yes |
PASSWORD | no |
PERMISSION | no |
PERMISSIONS | no |
PRIMARY | yes |
QUORUM | yes |
REVOKE | yes |
SCHEMA | yes |
SELECT | yes |
SET | yes |
STORAGE | no |
SUPERUSER | no |
TABLE | yes |
TEXT | no |
TIMESTAMP | no |
TIMEUUID | no |
THREE | yes |
TOKEN | yes |
TRUNCATE | yes |
TTL | no |
TWO | yes |
TYPE | no |
UPDATE | yes |
USE | yes |
USER | no |
USERS | no |
USING | yes |
UUID | no |
VALUES | no |
VARCHAR | no |
VARINT | no |
WHERE | yes |
WITH | yes |
WRITETIME | no |
DISTINCT | no |
No comments:
Post a Comment