gpt4 book ai didi

cassandra - 错误请求 : line 1:115 mismatched input ';' expecting K_VALUES in cassandra

转载 作者:行者123 更新时间:2023-12-02 10:21:00 26 4
gpt4 key购买 nike

我使用 cqsql 在 Cassandra 中创建了一个表

CREATE TABLE UnderTest (
rowID text PRIMARY KEY,
secondID text ,
Start_Time timestamp,
End_Time timestamp,
Exp int,
Act int,
Reason text
);

现在我使用插入命令将数据插入表中,如下所示:

insert into UnderTest values ('1','A1','2011-02-03 04:05+0000','2011-02-03 05:05+0000','2011-02-03 06:08+0000','COMM');

在此我收到错误:

Bad Request: line 1:115 mismatched input ';' expecting K_VALUES

有什么帮助吗?

最佳答案

我是 Cassandra 的新手,在插入名称问题解决后忘记在插入中提及列名称。

现在查询是这样的

insert into UnderTest (rowID,secondID,Start_Time,End_Time,Exp,Act,Reason) 
values ('1','ATM1','2011-02-03 04:05+0000','2011-02-03 05:05+0000',3600,4200,'COMM') ;

关于cassandra - 错误请求 : line 1:115 mismatched input ';' expecting K_VALUES in cassandra,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24524209/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com