cassandra copy data from one columnfamily to another columnfamily

前端 未结 3 1454
时光取名叫无心
时光取名叫无心 2021-01-02 08:29

I am newbie to cassandra . I need to copy data from one columnFamily to another columnFamily in same keyspace in cassandra .Say for ex we have a A1 columnFamily in keyspace

3条回答
  •  青春惊慌失措
    2021-01-02 08:40

    cqlsh -k mykeyspace -e 'COPY fromTable(columnNames) TO STDOUT' | head -n -1 | cqlsh -k mykeyspace -e 'COPY toTable(columnNames) FROM STDIN'

提交回复
热议问题