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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -