How to bind IN-clause values in a CQL 3 prepared statement?

前端 未结 1 1569
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 20:53

I have a table that is roughly like

create table mytable (
   id uuid,
   something text,
   primary key (id)
);

I\'m trying to create a pr

相关标签:
1条回答
  • 2020-12-11 21:14

    The correct syntax is SELECT * FROM mytable WHERE id IN ? (without parens around the ?). This will allow you to pass a list of UUIDs to bind to that single query parameter.

    0 讨论(0)
提交回复
热议问题