【发布时间】:2019-05-19 18:45:44
【问题描述】:
我需要查询 dynamoDB 并获取所有符合特定条件的记录。要求是,我有一个表说 parent_child_table,它有 parent_id 和 child_id 作为两列,现在我需要查询具有特定输入 id 的表并获取所有记录。举例
现在如果我用 id 67899 查询数据库,我应该得到两条记录,即 12345 和 67899。
我尝试使用以下方法:
- GetItemRequest itemRequest=new GetItemRequest().withTableName("PARENT_CHILD_TABLE").withKey(partitionKey.entrySet().iterator().next(), sortKey.entrySet().iterator().next());
但我没有得到 OR 运算符。
【问题讨论】:
标签: amazon-dynamodb dynamodb-queries