在 SimpleDB 中的单个查询中删除所有 ItemsName()
嗨,
我想删除 simpledb 中单个查询中的所有 ItemName。 在简单数据库中是否可能。如果可能,请给出删除简单数据库中所有项目的查询
谢谢 森蒂尔
HI,
I want to delete all ItemNames in single query in simpledb.
whether it's possible in simple db.If possible please give the query for deleting all items in simple DB
Thanks
senthil
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SimpleDB 没有任何方法可以通过单个查询删除多条记录,并且没有相当于“TRUNCATE TABLE”的方法。
您的选择是一次删除一个记录或删除整个域。
SimpleDB doesn't have any way to delete multiple records with a single query, and there is no equivalent to 'TRUNCATE TABLE'.
Your options are either to delete records one at a time or to delete the entire domain.
使用 DeleteDomain 操作删除整个域。您可以随后使用
CreateDomain
重新创建域。Use the DeleteDomain operation to delete an entire domain. You can re-create the domain using
CreateDomain
afterward.SimpleDB 现在支持批量删除: http://docs.amazonwebservices.com/AmazonSimpleDB/latest /DeveloperGuide/SDB_API_BatchDeleteAttributes.html
但一次只能执行 25 个。
如果您想删除整个域,请按照 Scrappydog 的建议删除该域。比一一删除要快得多。
SimpleDB supports batch delete now: http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API_BatchDeleteAttributes.html
But you can only do 25 at a time.
If you want to delete the entire domain, do as Scrappydog suggest and delete the domain. Much faster than deleting one by one.