【发布时间】:2023-06-28 14:15:02
【问题描述】:
尝试创建下表:
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 '
【问题讨论】:
-
你试过去掉最后一个逗号吗? "last_modified_at 时间戳,"
-
是的,我做到了......仍然是同样的错误:(
-
问题在于字段架构 - 如果您将其更改为其他内容并删除最后一个字段的注释,它将起作用
-
当我删除字段模式时它起作用了。但是为什么会导致错误呢?是因为与某事发生冲突吗? @ShlomiLivne
标签: cassandra cql cqlsh scylla