0

I was trying to create a secondary index in cassandra using cql3. I know I can do it using CREATE INDEX.. syntax.

But is there any way I can designate a column as Secondary key when using CREATE TABLE.. syntax i.e., while defining a table?

I have searched on internet but getting results regarding CREATE INDEX. I'm not sure how to frame it.

Community
  • 1
  • 1
pinkpanther
  • 4,770
  • 2
  • 38
  • 62

1 Answers1

1

Nope. You have to do two queries. You can do them one after the other.

ashic
  • 6,367
  • 5
  • 33
  • 54