在Azure中从mongodb数据库删除一行 [英] Delete a row from mongodb database in azure

查看:61
本文介绍了在Azure中从mongodb数据库删除一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个天蓝色的新手,在Azure云存储上拥有一个mongodb数据库.我正在尝试从Azure中的查询资源管理器中删除具有特定值的行,但是我一直收到此错误.我想念什么吗?

I am an azure newbie who has a mongodb database on Azure cloud storage. I am trying to delete a row with a specific value from the Query explorer in Azure, but I keep getting this error. Am I missing something?

从_id ='...'不起作用的用户删除 都不会从_id =''工作的用户中删除*

delete from users where _id='...' doesnt work neither does delete * from users where _id='' work

即使在查询时在mongodb数据库上执行SQL的情况下,此方法也能很好地工作

this works perfectly even if am doing SQL on a mongodb database while querying

推荐答案

我认为您正在使用Microsoft DocumentDB(而不是mongoDB). DocumentDB在Azure上可用,并支持类似SQL的查询.

I think you are using Microsoft DocumentDB (not mongoDB). DocumentDB is available on Azure and supports SQL-like queries.

我建议您看一下文档: https://azure.microsoft.com/zh-CN/documentation/articles/documentdb-sql-query/

I suggest taking a look at the documentation: https://azure.microsoft.com/en-us/documentation/articles/documentdb-sql-query/

根据文档INSERT,UPDATE和DELETE仅可通过REST API使用,而不能在查询语言中使用.

According to the docs INSERT, UPDATE, and DELETE are only available through the REST API and not in the query language.

这篇关于在Azure中从mongodb数据库删除一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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