Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nosql 卡桑德拉:更新多行吗?_Nosql_Cassandra - Fatal编程技术网

Nosql 卡桑德拉:更新多行吗?

Nosql 卡桑德拉:更新多行吗?,nosql,cassandra,Nosql,Cassandra,在mysql中,我可以执行以下查询,updatemytable SET price='100',其中manufacturer='22' 卡桑德拉能做到这一点吗 谢谢 为此,您需要在一个单独的列族中维护自己的索引(您需要一种方法来查找由certatin制造商生产的所有产品(产品ID)。当您拥有所有产品ID时,进行批量变异非常简单)。 例如 (免责声明:感谢上面使用的注释)Hi!在读了两遍你的链接后,我真的还不明白,但也许在第四次或第五次之后:)谢谢你的帮助! ManufacturerToProd

在mysql中,我可以执行以下查询,
updatemytable SET price='100',其中manufacturer='22'

卡桑德拉能做到这一点吗


谢谢

为此,您需要在一个单独的列族中维护自己的索引(您需要一种方法来查找由certatin制造商生产的所有产品(产品ID)。当您拥有所有产品ID时,进行批量变异非常简单)。 例如


(免责声明:感谢上面使用的注释)

Hi!在读了两遍你的链接后,我真的还不明白,但也许在第四次或第五次之后:)谢谢你的帮助!
 ManufacturerToProducts = { // this is a ColumnFamily
     '22': { // this is the key to this Row inside the CF
        // now we have an infinite # of columns in this row
       'prod_1': "prod_1",  //for simplicity I'm only showing the value (but in reality the values in the map are the entire Column.)
       'prod_1911' : null         
      },  // end row
      '23': {   // this is the key to another row in the CF
         // now we have another infinite # of columns in this row
        'prod_1492': null,
      },
    }