删除Dynamo DB中的多个记录 [英] Deleting multiple records in dynamo db

查看:59
本文介绍了删除Dynamo DB中的多个记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们只能通过范围键删除dynamo db中的多条记录吗?

can we delete multiple records in dynamo db only through range key?

我正在尝试执行以下sql语句

I'm trying to do like this sql statement

从雇员那里删除,其中employee_name ='gopal';

delete from employee where employee_name='gopal';

因此,此处员工名称为 gopal 的记录应被删除

so here the records with employee name gopal should get deleted

我们可以在dynamo中实现类似此sql查询的功能吗? db?

can we achieve same like this sql query in dynamo db?

推荐答案

您必须执行BatchWriteItem才能删除项目。
摘自文档

You would have to do a BatchWriteItem to delete your items. From the documentation:


BatchWriteItem执行放置和删除

BatchWriteItem performs put and delete

这篇关于删除Dynamo DB中的多个记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆