Skip to content

Commit d60a0fc

Browse files
committed
Add support for comments in OQL syntax
1 parent 143c052 commit d60a0fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • content/en/docs/refguide/modeling/domain-model/oql

content/en/docs/refguide/modeling/domain-model/oql/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Identifiers are used for module, entity, attribute, association, and alias names
3636

3737
Multiple identifiers can be composed into a path, separated by special characters `.` and `/`. The `.` special character can be used to indicate the module and entity in the form `Module.Entity`. The `/` special character can be used to indicate the attribute of an entity in the form `Module.Entity/Attribute` and it can be used for separating associations in long paths. Examples of paths can be seen in the [Select from Multiple Tables using JOIN](/refguide/oql-clauses/#join) section of *OQL Clauses*.
3838

39+
Comments can be used in OQL queries to improve readability. Single-line comments start with `--`. Multi-line comments are enclosed by `/* and */` and support nesting. Comments are ignored during query execution.
40+
3941
### Reserved Words {#reserved-oql-words}
4042

4143
Words with a specific purpose in OQL are reserved. If you use reserved words for entity, variable, or attribute names in an OQL query, they must be wrapped in double quotes `" "`. For example, in the OQL query `SELECT AVG(TotalPrice) FROM Sales."Order" WHERE IsPaid = 1`, `Order` needs to be wrapped in quotes because it is a reserved word, as it can be used to `ORDER BY`.

0 commit comments

Comments
 (0)