Delete a row from mongodb database in azure

PirateApp

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? enter image description here

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

this works perfectly even if am doing SQL on a mongodb database while querying enter image description here

Sami Pussinen

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

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

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Get a Result from Azure a row is Inserted and Delete a Row Data From Local Database After Inserted in Azure Database

Cant delete row from database

python mysql - can not delete row from database

Delete row from database in gridview and c#

Delete row from database table with Laravel 5.2

dbplyr: delete row from a table in database

Delete row from database with a button in table (PHP)

How to delete selected row from datagridview and database?

how to delete duplicates record from a mongodb database

Delete MongoDB database from Bash script

Delete row using datatable plugin then delete it from database

Delete any row from DataGridView as well as from database

Delete a row on a database (JSP)

Delete everything in a MongoDB database

How delete one row from an array in mongoDB collection

How to delete data from Mongodb and table row at a same time

How do I delete an entire row from a database

Symfony 3/4 : delete a table row from a database through AJAX

Delete A Row In a Listbox that Gets Data from Access database

Firebase delete relevant row from database if app is uninstalled

delete row of database from a view list that displayed by looping

Delete ROW from MYSQL database without having a Primary Key

Beginner: Delete row from Table and Database PHP/HTML/MySQL

How to delete a row from a local sql server database in C#

Delete selected row from DataGridView and MS-Access Database

How to delete a row from JTable while retaining it in the database

How to delete a single data from database in django (not deleting the entire row)

Mongodb: how to get the first document from database and then delete it

DataAdapter does not delete database row