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

时间:2019-01-21 20:58:10

标签: json cql cqlsh

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

1 个答案:

答案 0 :(得分: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"}';