Page History
MongoSQL queries are written using a subset of the SQL-92 standard. This document details Aqua Data Studio's MongoSQL syntax and functions. See the SQL Mapping page for how Aqua Data Studio's syntax maps to MongoDB Query syntax (http://docs.mongodb.org/manual/core/read-operations/#queries-in-mongodb).
Table of Contents |
---|
...
- Query Syntax
- DML Syntax
- DDL Syntax
...
- Supported Functions
Info |
---|
Keywords are not case-sensitive. In this document, keywords such as SELECT are capitalized for illustration purposes. |
Info |
---|
When specifying collection_name, if the collection is in a different database than the current database, you can use the syntax db.collection_name. |
Query Syntax
The MongoSQL Query Syntax is designed to allow the use of SQL-like statements to query the structured data documents of MongoDB. View the SQL Mapping reference to see how the MongoSQL syntax and commands map to MongoDB's commands.
...
Code Block |
---|
SELECT city AS htowns FROM zips WHERE city LIKE 'H%' |
Subdocument and Array Fields
Querying subdocument and array data is supported automatically. Consider the following:
...