What is the Cassandra CQL equivalent for INCR (increment a CounterColumn)?

cassandra, cql, nosql

Solution

You can find the CQL syntax reference here: Cassandra Query Language (CQL) v2.0. To increment a counter in CQL:

update MyCounter set test = test + 1 where KEY = '123';

Problem

What is the CQL equivalent for this: INCR MyCounter['123']['test'] BY 1

Original source