As you are finding out, CQL != SQL. There is no way to do what you're asking in CQL, short of iterating through each row in your table.
Robert's suggestion about redefining column1
to be a static column may help. But static columns are tied to their partition key, so you would still need to specify that:
aploetz@cqlsh:stackoverflow2> UPDATE t SET s='XXX' WHERE k='k';
Also, it sounds like you only want to be able to set a column value for all rows. A static column won't work for you if you want that column value to be different for CQL rows within a partition (from the example in the DataStax docs):
aploetz@cqlsh:stackoverflow2> INSERT INTO t (k, s, i) VALUES ('k', 'I''m shared', 0);
aploetz@cqlsh:stackoverflow2> INSERT INTO t (k, s, i) VALUES ('k', 'I''m still shared', 1);
aploetz@cqlsh:stackoverflow2> SELECT * FROM t;
k | i | s
---+---+------------------
k | 0 | I'm still shared
k | 1 | I'm still shared
(2 rows)
Note that the value of column s
is the same across all CQL rows under partition key k
. Just so you understand how that works.