SELECT AccountID
(To select multiple fields, separate them by commas:)
SELECT AccountID,FirstName,Lastname
Mule Runtime Engine versions 3.5, 3.6, and 3.7 reached End of Life on or before January 25, 2020. For more information, contact your Customer Success Manager to determine how you can migrate to the latest Mule version. |
In Anypoint Connectors which support the query functionality, the DataSense Query Editor allows you to easily query and retrieve complex data stored in a remote application. To define your query, you can proceed in one of two ways:
use the Query Editor’s graphical Query Builder, which displays objects and fields available via the connector
type your query directly into the Query Text field, using the remote application’s native query language or the DataSense Query Language
To facilitate the latter, this document describes the DataSense Query Language for use in the Query Editor.
This document assumes that you are familiar with the DataSense Query Editor. The query language described in this document is used in conjunction with the Query Editor in the editor’s properties panel.
The DataSense Query Language is, in fact, a basic subset of SQL. The tables below list the supported language elements and operators.
Language element | Purpose | Examples |
---|---|---|
|
Select fields from an object |
(To select multiple fields, separate them by commas:)
|
|
Specify which object to select from |
|
|
Define a comparison predicate to eliminate results that do not match |
|
|
Specify a field to use for sorting results |
|
|
Set offset (number of results to ignore) for query results |
|
|
Set maximum number of results to return |
|
|
Concatenates search filters defined by the |
|
|
Concatenates search filters defined by the |
|
Due to the complexity of graphical representation, the graphical Query Builder cannot display the
|
= |
equals to |
< |
less than |
⇐ |
less or equal than |
> |
greater than |
>= |
greater or equal than |
<> |
not equal to |
|
includes specified pattern |
|
Use to separate items in a list |
|
Use to delimit filter operations articulated by the |
|
Use to:
|
Data Type | Usage Example | Notes |
---|---|---|
String |
|
|
Date |
|
The date format is the ISO 8601 format, which supports time zones |
Number |
|
|
Boolean |
|
|
Null |
|
Learn about the DataSense Query Editor and how you can build your queries using a graphical interface
Learn about DataSense, which allows you to perform queries even if you do not know which objects and fields are available