Cassandra子查询替代 [英] Cassandra Subquery Alternate

查看:74
本文介绍了Cassandra子查询替代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找cassandra的代码;

I am looking for this code for cassandra;

SELECT * FROM table_1 WHERE col_1 IN (SELECT col_1 FROM table_2 WHERE col_2=2)

Cassandra是否有相应的代码?

Is there any correspond code for cassandra?

推荐答案

Cassandra的两个核心概念是表被设计为服务于一个查询,并且不支持这些选择.当然,您可以在应用程序级别执行此操作.

Two of Cassandra's core concepts is that the tables are designed to serve one query and it does not support these kinds of selects. Of course, you could do that at your application level.

因此,答案是否定的,它将不支持此类查询.

So, the answer in no, it won't support such query.

这篇关于Cassandra子查询替代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆