cql - Can't update Cassandra table in cqlsh -
i have simple table "test" set so:
cqlsh> select * "default".test; name | address ------+------------ kim | 123 street john | 222 street
i have cqlsh terminal open, , when try update row in table, error:
cqlsh> update "default".test set name = mark name = john if exists; syntaxexception: line 1:38 no viable alternative @ input 'where' (..."default".test set name = [mark] where...)
not sure what's wrong command. i've tried wrapping field names/ values in quotation marks makes no difference.
always enclose string/date/timesamp value single quote
so case :
update "default".test set name = 'mark' name = 'john' if exists;
Comments
Post a Comment