删除发电机数据库中的多条记录 [英] Deleting multiple records in dynamo db

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

问题描述

是否只能通过范围键删除dynamo db中的多条记录?

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

我正在尝试做这样的sql语句

I'm trying to do like this sql statement

delete from employee where employee_name='gopal';

所以这里应该删除员工姓名为 gopal 的记录

so here the records with employee name gopal should get deleted

我们可以在 dynamo db 中实现类似这个 sql 查询吗?

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 执行 put 和 delete

BatchWriteItem performs put and delete

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

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