删除CosmosDB的SQL [英] Delete SQL for CosmosDB

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

问题描述

是否可以在CosmosDB中使用SQL从文档集合中删除?

Is it possible to delete from a document collection using SQL in CosmosDB?

我正在寻找类似于SELECT的Delete SQL,如下所示:

I am looking for a Delete SQL similar to SELECT as below:

SELECT * 
FROM Families f 
WHERE f.id = "AndersenFamily"

我正在寻找东西:

SELECT * 
FROM Families f 
WHERE f.id = "AndersenFamily"

推荐答案

是否可以在Windows中使用SQL从文档集合中删除 CosmosDB?

Is it possible to delete from a document collection using SQL in CosmosDB?

到目前为止,尚不可能这样做.您将需要使用SELECT查询来获取文档,然后使用DELETE Document API(或基于所使用的SDK的适当删除方法)分别删除文档.

As of today it is not possible to do so. You will need to fetch the documents using SELECT query and then delete the documents individually using DELETE Document API (or appropriate delete method based on the SDK you're using).

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

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