Skip to content

CQL

Drivers for different programming languages


id: ncUKuoqivimSxGzWdwRmg title: CQL Examples desc: '' updated: 1643775352345 created: 1643665935462


CREATE TABLE IF NOT EXISTS table_name (var_name_1 type, var_name_2 type,  PRIMARY KEY (var_name_1, var_name_2))
INSERT INTO table_name (var_name_1, var_name_2) values (1, "test")
select * from music_library WHERE artist_name='The Beatles'

WHERE clause

Data Modeling in Apache Cassandra is query focused, and that focus needs to be on the WHERE clause Failure to include a WHERE clause will result in an error ALLOW FILTERING explained | DataStax

Types

  • int
  • text