作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用 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/
我使用 cqsql 在 Cassandra 中创建了一个表 CREATE TABLE UnderTest ( rowID text PRIMARY KEY, secondID text , Sta
我是一名优秀的程序员,十分优秀!