Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This document contains the list of reserved keywords in the Azure Digital Twins query language. These words can't be used as identifiers in queries unless they're escaped in double square brackets.
List of reserved keywords
Here are the reserved keywords in the Azure Digital Twins query language:
ALLANDASASCAVGBYCOUNTDESCDEVICES_JOBSDEVICES_MODULESDEVICESENDS_WITHFALSEFROMGROUPINIS_BOOLIS_DEFINEDIS_NULLIS_NUMBERIS_OBJECTIS_PRIMITIVEIS_STRINGMAXMINNOTNOT_INNULLORORDERSELECTSTARTS_WITHSUMTOPTRUEWHEREIS_OF_MODEL
Escaping reserved keywords in queries
To use a reserved keyword as an identifier in a query, escape the keyword by enclosing it with double square brackets like this: [[<keyword>]]
For example, consider a set of digital twins with a property called GROUP, which is a reserved keyword. To filter on that property value, the property name must be escaped where it's used in the query, as shown here:
SELECT * FROM DIGITALTWINS WHERE [[Group]] = 'BravoTeam'