Pages

Friday, August 22, 2014

CQL Keywords - Cassandra Query Language

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.
KeywordReserved?
ADDyes
ALLno
ALTERyes
ANDyes
ANYyes
APPLYyes
ASno
ASCyes
ASCIIno
AUTHORIZEyes
BATCHyes
BEGINyes
BIGINTno
BLOBno
BOOLEANno
BYyes
CLUSTERINGno
COLUMNFAMILYyes
COMPACTno
CONSISTENCYno
COUNTno
COUNTERno
CREATEyes
DECIMALno
DELETEyes
DESCyes
DOUBLEno
DROPyes
EACH_QUORUMyes
FLOATno
FROMyes
GRANTyes
INyes
INDEXyes
CUSTOMno
INSERTyes
INTno
INTOyes
KEYno
KEYSPACEyes
LEVELno
LIMITyes
LOCAL_ONEyes
LOCAL_QUORUMyes
MODIFYyes
NORECURSIVEyes
NOSUPERUSERno
OFyes
ONyes
ONEyes
ORDERyes
PASSWORDno
PERMISSIONno
PERMISSIONSno
PRIMARYyes
QUORUMyes
REVOKEyes
SCHEMAyes
SELECTyes
SETyes
STORAGEno
SUPERUSERno
TABLEyes
TEXTno
TIMESTAMPno
TIMEUUIDno
THREEyes
TOKENyes
TRUNCATEyes
TTLno
TWOyes
TYPEno
UPDATEyes
USEyes
USERno
USERSno
USINGyes
UUIDno
VALUESno
VARCHARno
VARINTno
WHEREyes
WITHyes
WRITETIMEno
DISTINCTno

No comments:

Post a Comment