This is my table structure and I am updating the sequence with the following query:
Update styles set sequence=1 where styleid = 'CLASSIC';
I am getting error message as
PRIMARY KEY part sequence found in SET part
Missing PRIMARY KEY part sequence
CREATE TABLE styles (
styleid ascii,
sequence int,
active boolean,
image ascii,
name ascii,
PRIMARY KEY (styleid, sequence)
) WITH CLUSTERING ORDER BY (sequence DESC);
Please anyone help me to update the clustering key sequence so that it will be updated. Or any alternative method please share.
sqltag, and replace it with thecqltag. This is an important distinction to make, as sql != cql. cql is a subset of sql. Expecting cql to function like sql is an exercise that will ultimately lead you to frustration. - Aaron