如何将json文件中的数据加载到Cassandra数据库中?

问题描述 投票:0回答:1

我应该在Cassandra中加载json文件的数据,但是我找不到合适的命令。你能帮助我吗?

json cql cqlsh
1个回答
0
投票

以下是插入单个json格式条目的示例:

INSERT INTO NerdMovies JSON '{"language": "several", "country": "new zealand", "main_actor": "Cate Blanchett", "movie": "lord of the rings", "director": "peter jackson", "year": "2001"}';
© www.soinside.com 2019 - 2024. All rights reserved.