Assuming you have movies as a string, and a list of categories, i.e.
create table movie( uuid timeuuid, name text, category list<text> primary key (uuid) ); insert into movie (uuid,name,category) values(now(), 'my movie', ['romance','comedy']); insert into movie (uuid,name,category) values(now(), 'other movie', ['action','comedy']);
Is it possible to effectively do something like:
select * from movie where category='comedy' select * from movie where category='comedy' and category='action'
This usage example is the most common query to our MySQL database.
cassandra cql
ζ δΈζ― δΈε ι³³ζ’¨
source share