Cassandra update column

前端 未结 2 1530
鱼传尺愫
鱼传尺愫 2021-01-21 16:18

how can i update column in cassandra database??

columnfam{
  username{
    name:edds,
    surname:surname,
    email:mymail@rrr.com
  }
}

for e

2条回答
  •  轮回少年
    2021-01-21 16:36

    As Octopus-Paul says, updates are the same as inserts. There's no need to read before writing, though. You can just do this:

    $column_family->insert('username', array('surname' => $new_surname));
    

提交回复
热议问题