Cassandra:在 '<missing ' 处缺少 ')'
Cassandra: missing ')' at '<missing '
试图创建以下内容table:
CREATE TABLE customTableSchema(
id UUID PRIMARY KEY,
table_id UUID,
schema text,
created_at timestamp,
last_modified_at timestamp,
);
遇到这个错误:
SyntaxException: line 4:8 missing ')' at '<missing '
schema
是 Cassandra 查询语言中的保留关键字,因此您不能使用它(参见 this table in the docs)。
由于“schema”是保留关键字,您不能以当前形式使用您的查询。如果你打算使用它,那么你可以按照下面的方式进行
CREATE TABLE customTableSchema(
id UUID PRIMARY KEY,
table_id UUID,
"schema" text,
created_at timestamp,
last_modified_at timestamp,
);
您可以参考 this page 保留的 cql 关键字。
试图创建以下内容table:
CREATE TABLE customTableSchema(
id UUID PRIMARY KEY,
table_id UUID,
schema text,
created_at timestamp,
last_modified_at timestamp,
);
遇到这个错误:
SyntaxException: line 4:8 missing ')' at '<missing '
schema
是 Cassandra 查询语言中的保留关键字,因此您不能使用它(参见 this table in the docs)。
由于“schema”是保留关键字,您不能以当前形式使用您的查询。如果你打算使用它,那么你可以按照下面的方式进行
CREATE TABLE customTableSchema(
id UUID PRIMARY KEY,
table_id UUID,
"schema" text,
created_at timestamp,
last_modified_at timestamp,
);
您可以参考 this page 保留的 cql 关键字。