user1198485
user1198485

Reputation:

How To Retrieve Data From Cassandra?

I Have Cassandra Column Family Name as Data3, In That I Have 2 Columns With Data As Follows

URL                           Data 
www.google.com               Google

I Want A Similar Query in Cassandra like ( SELECT * FROM Table1 WHERE Data='Google')

Thanks

Upvotes: 0

Views: 2357

Answers (1)

Nishant
Nishant

Reputation: 55876

    select * from Data3 where Data = 'Google'

This is CQL, as described by CQL Language Reference on DataStax.

Weirdly, that we use earlier version of Cassandra where CQL was not supported. And we never thought that we actually required something like SQL. If you wanted more detailed read these articles

  1. CQL Utility
  2. You could query without SQL type utility
  3. You could see non-SQL example/tutorial here . Here is how you select columns

Upvotes: 1

Related Questions