无法创建带有评论的 table
Unable to create a table with comment
我正在尝试创建一个 table 并想在架构中添加注释,但我无法获得正确的语法。
CREATE TABLE codingjedi.practice_questions_javascript_tag(
year bigint,
month bigint,
creation_time_hour bigInt,
creation_time_minute bigInt,
id uuid,
PRIMARY KEY ((year, month), creation_time_hour, creation_time_minute)
) WITH comment = 'some comment' CLUSTERING ORDER BY (creation_time_hour DESC, creation_time_minute ASC)
我不得不使用 AND
来组合这两个指令
CREATE TABLE codingjedi.practice_questions_javascript_tag(
year bigint,
month bigint,
creation_time_hour bigInt,
creation_time_minute bigInt,
id uuid,
PRIMARY KEY ((year,month), creation_time_hour, creation_time_minute, id )
) WITH comment = 'some comment' AND CLUSTERING ORDER BY (creation_time_hour DESC, creation_time_minute ASC, question_id ASC);
我正在尝试创建一个 table 并想在架构中添加注释,但我无法获得正确的语法。
CREATE TABLE codingjedi.practice_questions_javascript_tag(
year bigint,
month bigint,
creation_time_hour bigInt,
creation_time_minute bigInt,
id uuid,
PRIMARY KEY ((year, month), creation_time_hour, creation_time_minute)
) WITH comment = 'some comment' CLUSTERING ORDER BY (creation_time_hour DESC, creation_time_minute ASC)
我不得不使用 AND
来组合这两个指令
CREATE TABLE codingjedi.practice_questions_javascript_tag(
year bigint,
month bigint,
creation_time_hour bigInt,
creation_time_minute bigInt,
id uuid,
PRIMARY KEY ((year,month), creation_time_hour, creation_time_minute, id )
) WITH comment = 'some comment' AND CLUSTERING ORDER BY (creation_time_hour DESC, creation_time_minute ASC, question_id ASC);