Re: update a record which does not exists

2017-12-04 Thread Oleksandr Shulgin
On Mon, Dec 4, 2017 at 4:13 AM, Peng Xiao <2535...@qq.com> wrote: > Dear All, > If we update a record which actually does not exist in Cassandra,will it > generate a new record or exit? > > UPDATE columnfamily SET data = 'test data' WHERE key = 'row1'; > as in CQL Update and insert are semanticall

Re: update a record which does not exists

2017-12-03 Thread @Nandan@
ot;我自己的邮箱";<2535...@qq.com>; > *Date: * Mon, Dec 4, 2017 11:13 AM > *To: * "user"; > *Subject: * update a record which does not exists > > Dear All, > If we update a record which actually does not exist in Cassandra,will it > generate a new record or exit? > &

Re: update a record which does not exists

2017-12-03 Thread Peng Xiao
After test,it do will insert a new record. -- Original -- From: "";<2535...@qq.com>; Date: Mon, Dec 4, 2017 11:13 AM To: "user"; Subject: update a record which does not exists Dear All,If we update a record which

update a record which does not exists

2017-12-03 Thread Peng Xiao
Dear All,If we update a record which actually does not exist in Cassandra,will it generate a new record or exit? UPDATE columnfamily SET data = 'test data' WHERE key = 'row1'; as in CQL Update and insert are semantically the same.Could anyone please advise? Thanks, Peng Xiao